Posted: 2011-12-07 22:11
I have a bat file calling winscp, which works perfectly with my credentials, but not from scheduler as it runs under a diff user, so I followed instructions of exporting my sessions settings to INI file. The bat file was modified to contain the following:
winscp.exe /ini="C:\myFolder\WinSCP.ini" "open email@example.com" "put \\servername\C$\Temp\Output\*.txt " "exit".
I d-click the bat file to test, the sessions is opened but I keep getting dialog box to enter PW. What am I doing wrong? I can see encrypted PW in the INI file.
Thanks in Advance!
Location: Prague, Czechia
Is this indeed the command you are running?
It shouldn't do anything, not even start the session. You are missing /command switch before "open ....":
winscp.exe /ini="C:\myFolder\WinSCP.ini" /command "open firstname.lastname@example.org" "put \\servername\C$\Temp\Output\*.txt " "exit".
You can post new topics in this forum
And it's free!