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

Rickaves

Don't undersstand your point of view

Hello @Martin, so, what should be instead of this line?
  /log="C:\writable\path\to\log\WinSCP.log" /ini=nul ^
  /command ^

Or how should it be solved?
Don't understand.
martin

Yes, but again, use winscp.com, not winscp.exe.
Guest

Thank you @Martin – so I just create a batch file with this line?
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="C:\writable\path\to\log\WinSCP.log" /ini=nul /script="C:\path\to\script\script.txt
Guest

Running Script file from batch file

Hi
the auto generated script file has this line:
# Execute the script using a command like:
#
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="C:\writable\path\to\log\WinSCP.log" /ini=nul /script="C:\path\to\script\script.txt"


I know how to run the batch script files but how do I run WinSCP script.txt via a batch file?

Can someone please show me an example?
Dave