WinSCP won't run from batch file
I'm trying to run WinSCP from a batch file created by another application. That app will ultimately run the batch file it creates, but for now I'm running the batch file manually by type its name at a command prompt.
The problem is that WinSCP apparently starts up but, instead of creating the log file and processing the script file, it outputs a few settings and asks for host information. After 10 seconds or so, it quits. I've also tried it without the "/ini=nul" option; the only change is that it makes the "Host:" request twice before quitting.
What have I fouled up?
Here's the command window output from the batch file execution:
V:\>"c:\Program Files (x86)\WinSCP\WinSCP.com" /ini=nul /log="\\<servername>\xxxx\WinSCP_ABC.LOG" /script="\\<servername>\xxxx\<scriptfilename>"
echo off
batch on
reconnecttime 120
confirm off
Host:
The problem is that WinSCP apparently starts up but, instead of creating the log file and processing the script file, it outputs a few settings and asks for host information. After 10 seconds or so, it quits. I've also tried it without the "/ini=nul" option; the only change is that it makes the "Host:" request twice before quitting.
What have I fouled up?
Here's the command window output from the batch file execution:
V:\>"c:\Program Files (x86)\WinSCP\WinSCP.com" /ini=nul /log="\\<servername>\xxxx\WinSCP_ABC.LOG" /script="\\<servername>\xxxx\<scriptfilename>"
echo off
batch on
reconnecttime 120
confirm off
Host: