dbWizard
Joined:
Posts:
10

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

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?

martin
Joined:
Posts:
36,025
Location:
Prague, Czechia