Topic "Win2k3 svr Scheduled task doesn't work when user logged off"

Author Message
Guest




Hi

Using scripting run through a batch file on a windows 2k3 server.

Batch: (run.bat)

"c:\program files\winscp\winscp.com" /script=D:\FTP-export\ftp-files\Script\script.txt

Script.txt:

option batch on
option confirm off
open ftp://user:password@ftpserver -passive
put D:\FTP-export\ftp-files\Files\NN_bookings.txt
put D:\FTP-export\ftp-files\Files\NN_Sub_Skills.txt
exit


It works great when I am logged on to the server, and run it manually.
Also when setup with scheduled task it works as long as I am logged on.
When logging off from the server no transfer takes place at all.
What have I done wrong?

Kind regards, Mike
Mikethegreek
[View user's profile]

Joined: 2011-01-18
Posts: 1
Location: Stockholm
Look at that, I forgot to log in before posting :p

Mike
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please start with this FAQ:
https://winscp.net/eng/docs/faq_environment
Come back if it does not help.
_________________
Martin Prikryl
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