Topic "File not found when processing in task scheduler on Windows"

Author Message
jnollet
[View user's profile]
Donor
Joined: 2014-12-04
Posts: 2
Location: MA
I have successfully used WinSCP to transfer files in batch files before
but now I am having difficulty with the job in the task scheduler.

I use the simple command:
call "C:\Program Files (x86)\WinSCP\WinSCP.exe" BoA /upload C_PM_*.DAT /defaults

BoA is a session configured to connect local folder to remote host (a bank specifically)

The file is in the local folder as C_PM_20141203102112.DAT

This step in my batch file never completes and only ends when forcibly stopped.

I attached a log of the session to this post.
_________________
JCN
BoA.log (7.44 KB) [Download]

Description: WinSCP log

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Does the file exist in Z:\ folder (the current working folder)?
_________________
Martin Prikryl
jnollet
[View user's profile]
Donor
Joined: 2014-12-04
Posts: 2
Location: MA
I was able to resolve the issue.
the problem was that the task scheduler doesn't like Mapped drives and the winscp.exe doesn't like UNC coding ...
what I did was to script the SFTP steps using winscp.com and move the files to local directories before executing those steps... it causes some extra cleanup but it works now.

Thanks again
John
_________________
JCN
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