Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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.
mmartin82

Re:Any Progress

Hi Martin,

Adding dummy into the password filed worked.

Thanks for your help resolving this.

Much appreciated!
martin

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" ^
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!
martin

Re: Any progress

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

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!
goompa

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

Thanks, I'll try that. Yes I am using FTP.
martin

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.
goompa

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