Topic "Scripting File download and generating transaction log"

Author Message
[View user's profile]

Joined: 2016-05-27
Posts: 7
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?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License