Scripting File download and generating transaction log



Scripting File download and generating transaction log

Just downloaded WinSCP and find it extremely user friendly in GUI mode.

However, I'm working to create a script file which will log into an ftpes server, download files, and create a "transaction log"

I've got the script working the logs into the server, changes the remote path, gets the files matching the *.xml file name on that path into a local folder.

But I need to write the transaction log into another file on my local drive so that I can present that info to my user if need be.

I found a sample command line that looks 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"

So I assume that my script, which looks like (for now):
open ftpes://FTP-yadayada:password@URL/ -explicit

# Change the remote directory
cd /XML/Test/Out

# download all xml files from the remote source and save in the C:\Data\
get *.xml C:\Data\XMLProcessing\
gets run by the previous command-line and will log the output to the path indicated.

What does the option:


in the command line sequence accomplish?

Reply with quote


You can post new topics in this forum