Topic "New version of WINSCP won't run as windows scheduled task?!!"

Author Message
Duffman77
[View user's profile]

Joined: 2011-10-04
Posts: 2
Location: NJ
I have been running v 4.06 for a long time now and have several automated tasks that connect to sftp servers and do "gets" daily. One new client I need to connect to needs me to do a put each day, but their sftp server didn't like the timestamp being updated, so i had to get the new version to do the -nopreservetime option on the put command. So my batch file is just:
winscp.exe /script=<filename.txt> This is how i've done it for years-- except it was winscp406.exe before. I cannot get this batch file to run as a scheduled task-- keeps coming back with 0x1 status. I've checked permissions and who it's running as...etc. I even tried updating one of my existing clients that i do the daily gets for, and if i run the winscp.exe instead of winscp406.exe in my batch file, it doesn't work.

If i just manually run the batch file, it runs just fine....just not as a scheduled task.

Any ideas?

Colin
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Add /log=path_to_log_file switch and inspect the log file. Or post it here.

Also read:
https://winscp.net/eng/docs/faq_scheduler
_________________
Martin Prikryl
Duffman77
[View user's profile]

Joined: 2011-10-04
Posts: 2
Location: NJ
wow, that makes total sense. I was remoted into the server with my ID, but run the scheduled job as the administrator account. Switched to ini file config (easier than doing the registry stuff). Wish i could've found this page earlier.
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License