Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

Silenced8647

Re: Full Script and Log

Removing the empty line in the script fixed this. Thanks for the assistance!
martin

Re: Full Script and Log

It behaves somehow mysteriously. I cannot reproduce it.
But as I've posted above, I suspect the format of the batch file. The empty line cannot be there:
  /log="C:\batch\target\WinSCP.log" /ini=nul /loglevel=1 ^
 
  /command ^

Normally WinSCP won't even see the commands after the empty line, as the batch file would consider them to be separate command, not belonging to WinSCP.
I can see in the log that WinSCP actually gets them. I assume it's because that in the actual batch file, the whitespaces are somehow non-standard.
Silenced8647

Full Script and Log

Attached is the full script and log (sanitized for sensitive information)
Thanks for the guidance
Silenced8647

Log Review Script Assistance

I'm trying figure out what the problem is with this script. I'm able to transfer a file with GUI – and used the "Generate Code" for the session as a basis for the script.
Authentication is working fine but the target file won't download. I'm not sure if there's a particular parameter to add for timeout or something. Any assistance in pointing me to next steps would be greatly appreciated.
Attached file includes script (less the connection string) and excerpt of log file output.
WinSCP Version 6.5.1 (Build 16311)