A site that requires a user name but no password..

Advertisement

goompa
Joined:
Posts:
7
Location:
new zealand

A site that requires a user name but no password..

How do I use scripting to attach to a site that requires a user name but no password..

Currently I'm just trying to work around the credentials prompt seeming all I have to do is press enter.

This means I can't automatically log on to this site.

Here is my current batch file...
"C:\Program Files\WinSCP\winscp" /console /command "option batch on" "open twft" "synchronize local" "V:\localpath /remotepath" "exit"

Is there any way of saving the password as the ascii character for CR or anything or is there a setting I can change so I don't have to be in front of my computer when this runs please?

Thanks

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
31,744
Location:
Prague, Czechia

Re: A site that requires a user name but no password..

From you other post I suppose you are using FTP, are you?
There's not correct way to do this in WinSCP yet actually, that for bringing this. This issue has been added to tracker.

I believe that you can workaround this by putting anything in the password box.
_________________
Martin Prikryl

Reply with quote

mmartin82
Guest

Any progress

Hi,

I was wondering if any progress was made on allowing a batch file to run where no password is required?

I have tried putting in test and a space but as per your suggestion of putting anything in but this hasn't worked.


Cheers!

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
31,744
Location:
Prague, Czechia

Re: Any progress

Just follow the tracker link above.
It shows that this was resolved and shows the syntax needed.

Reply with quote

Advertisement

Guest

Re:Any Progress

Hi Martin,

Thanks for the quick reply!

Is it possible this feature could have been broken in a subsequent update?

I'm using the following code:

echo Copying files

"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
  /command ^
    "open ftp://zp300:@172.29.252.16" ^
    "cd ""/ """ ^
    "lcd ""D:\Data\Wake Steering Pilot - (External) - Measurement Data [EXTERNAL]\Nacelle LiDAR T3 [ZDM #368]\test""" ^
    "synchronize local" ^
    "exit"

set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
  echo Success
) else (
  echo Error
)

exit /b %WINSCP_RESULT%


And am presented with the attached screen shot where I then need to hit space and then enter before it will proceed to successfully synch.

Any support would be greatly appreciated!


Thanks again!

WinSCP_Batchfile_ftp_no_password.png

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
31,744
Location:
Prague, Czechia

Re:Any Progress

OK, it is probably this special case, which I was able to reproduce:
https://winscp.net/tracker/1796

Did you try to workaround it by specifying a dummy password?
    "open ftp://zp300:dummy@172.29.252.16" ^

Reply with quote

mmartin82
Guest

Re:Any Progress

Hi Martin,

Adding dummy into the password filed worked.

Thanks for your help resolving this.

Much appreciated!

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
31,744
Location:
Prague, Czechia

Re:Any Progress

mmartin82 wrote:

Adding dummy into the password filed worked.

Thanks for your help resolving this.
Thanks for your feedback.

Anyway, can you test the fix for me? Can you send me an email, so I can send you back a development version of WinSCP for testing? Please include a link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.

Reply with quote

Advertisement

You can post new topics in this forum