Topic "Command Line Trouble"

Author Message


Hi, I wrote a small batch file to process a nightly file transfer to another server. Basically, my script calls WinSCP3, and gives it some commands to run, then asks it to exit.

Here's the script:
winscp3 (server login info) /command "option batch on" "option confirm off" "put c:\dump.txt test.txt" "exit"

Now, my problem is this. The script runs completely fine when I am logged in and run it manually. However, I want to schedule it using Task Scheduler and then log out of the PC. In that case, the script is run at the scheduled time, but WinSCP3 (version 3.8.2) hangs. If I login after that and go to Task Manager, WinSCP3 is listed in there as "running", but nothing is happening. Any reason why? I'd appreciate all help and input to get this resolved. Thanks!


This issue was fixed when we specified an account to run the job in Task Scheduler and made sure that account had "logon as system service" rights.

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License