Scheduled Task in Windows hangs WinSCP
I have a simple script file for WinSCP 3.7.1 I'm trying to run via winscp3.com. I have a .cmd file called by Windows Scheduler that does some other tasks, then calls the WinSCP program with the script:
e:\winscp3\winscp3.com admin@host.domain.net /script=updateusa.txt
the script looks like this:
option batch on
option transfer automatic
option synchdelete on
lcd d:\snapshots\usa\foo
cd /data/domino/stgdoma/domino/html/foo
synchronize remote
close
exit
If I run the .cmd file manually, it runs great - all tasks run to completion, and everything exits all nice and clean. If I run this from the scheduler (either automatically, or if I right-click on the task and choose Run), it hangs at the winscp routine. I've enabled logging in winscp, and this works fine if I run the .cmd file manually, but it doesn't generate any log file at all if I run it from the scheduler.
When I check Task Manager, WinSCP3.com and WinSCP3.exe are still running, and I have to shut them down manually (End Process).
Any ideas?
e:\winscp3\winscp3.com admin@host.domain.net /script=updateusa.txt
the script looks like this:
option batch on
option transfer automatic
option synchdelete on
lcd d:\snapshots\usa\foo
cd /data/domino/stgdoma/domino/html/foo
synchronize remote
close
exit
If I run the .cmd file manually, it runs great - all tasks run to completion, and everything exits all nice and clean. If I run this from the scheduler (either automatically, or if I right-click on the task and choose Run), it hangs at the winscp routine. I've enabled logging in winscp, and this works fine if I run the .cmd file manually, but it doesn't generate any log file at all if I run it from the scheduler.
When I check Task Manager, WinSCP3.com and WinSCP3.exe are still running, and I have to shut them down manually (End Process).
Any ideas?