I have the following script (with some details removed) which I'm calling with parameters.
/log=\\server\path\to\WinSCP.log /loglevel=0 "-script=\\server\path\to\DownloadScript.txt" /parameter // Username Password "Directory name containing spaces" \\server\path\to\put\files\
But here's my concern. When I didn't (I do now, because I finally figured out this was my problem) have double-quote marks around
"sftp://%1%:%firstname.lastname@example.org/%3%", this failed. Okay, I get it. The
opencommand was being sent invalid arguments.
However, my concern is that this wrote nothing to the WinSCP.log. I would have expected the log to show that WinScp was executed, what the command line was, and an error to the effect of a malformed
Not having that log information made this error more difficult to track down than it probably should have been.
I'm currently using "WinSCP, Version 5.7.7 (Build 6257)". My apologies if this is already fixed in a new version -- my organization tends to be slow to install updates. If this is fixed in an update, perhaps it will help me justify updating WinScp. :)
I'm not attaching a log because my problem is that nothing was logged.