Topic "Task Scheduler error, but when run manually no error"

Author Message
mcruz
[View user's profile]

Joined: 2016-10-25
Posts: 1
Location: Puerto Rico
Hi to all.

I have created the following batch:

{
option batch abort
option confirm off

open ftp://(USER):(PASSWORD)@ftp.com/folder/inbox/ -explicittls
put "Y:\*"

close
exit
}

When i run it manually (double click to it) it will run with no problems. But if i put it in a task scheduler to run it give me the following error.



C:\Program Files (x86)\WinSCP>winscp.com /script=SyncToRemoteScript.txt
batch abort
reconnecttime 120
confirm off
Connecting to ftp.com ...
TLS connection established. Waiting for welcome message...
Connected
Starting the session...
Session started.
Active session: [1] ***@ftp.com
No file matching '*' found. (System Error. Code: 3.
The system cannot find the path specified)
Session '***@ftp.com' closed.
No session.


but if i run it manually


C:\Program Files (x86)\WinSCP>winscp.com /script=SyncToRemoteScript.txt
batch abort
reconnecttime 120
confirm off
Connecting to ftp.com ...
TLS connection established. Waiting for welcome message...
Connected
Starting the session...
Session started.
Active session: [1] ***@ftp.com
PR7_MN32_10242016_122526_ | 328 B | 1.4 KB/s | binary | 100%
Session '***@ftp.com' closed.
No session.

Would you help to solve this,
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
I assume the problem is that the account that drives your task scheduler task does not see the Y: drive or does not have a network access at all. Try doing dir Y:\ in your task.
Advertisements

You can post new topics in this forum

Search

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