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

dbWizard

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:

/ini=null

in the command line sequence accomplish?