Posted: 2012-08-02 11:55
I start using WinSCP and i think it is very useful software.
The only problem i have is when i try to run the script under Scheduler Task.
When i run the bat file by double click it works fine.
The the .ini file is on the WinSCP folder.
The bat and txt files is on WinSCP folder.
winscp.exe /console /script=local2remote.txt /log=C:\Users\myusername\Desktop\log.txt
echo Upload succeeded, moving local files
move \\servername\folder\folder\*.xml \\servername\folder\folder\_folder
move \\servername\folder\folder\*.csv \\servername\folder\folder\_folder
echo Upload failed, keeping local files
# Automatically abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Force binary mode transfer
option transfer binary
# Establish the connection
# Change the Local Directory
# Change to the correct Remote directory
# List the local files
# List Remote Files
# Upload *.csv
Can someone tell me why?
Location: Prague, Czechia
Please post a log file for both scenarios.
Posted: 2012-08-10 07:57
I find the problem.
To Task Scheduler i fill the area Start in.
At the first i assumed that is not mandatory because i give the full path of the bat file.
Now it is wotking.
You can post new topics in this forum
And it's free!