Log Review Script Assistance

Advertisement

Silenced8647
Joined:
Posts:
3

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)
Description: script and log excerpt

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,146
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum