Topic "Windows Task Scheduler"

Author Message
colemanr
[View user's profile]

Joined: 2013-04-22
Posts: 1
Hi everyone I'm new WINSCP and from what I can tell I really enjoy using it. I'm having problems using the Windows Task Scheduler to Winscp and FTP a file over to a Unix server by automation. It seems like I can't get it over, but doing it manually. I'm thinking that its bombing on the Winscp commands part when it brings up another command line for Winscp, but I'm not completely sure. Any ideas?

I currently have Windows Task Scheduler openning up Winscp to a Saved session, but it doesn't or I can't figure out how to get it to copy a file over automated.

"C:\Program Files (x86)\WinSCP\WinSCP.exe"
"sadmin@198.68.33.43"

Last edited by colemanr on 2013-04-24 13:05; edited 1 time in total
Advertisements
Arjun
[View user's profile]

Joined: 2012-04-05
Posts: 10
Location: Sri Lanka
create a winscp command script

eg
open MITTEAM@10.207.30.52 -------this has to be a saved session in your winscp
option confirm off
option batch continue
option transfer binary
synchronize local E:\Logs\ /Incoming ---------sync the "/Incoming" on 10.207.30.52 with E:\Logs,
close
exit

you can call this script by a bat file and later can add the bat file to the windows scheduler to schedule
eg-
"C:\Program Files\WinSCP\winscp.com" /script="D:\Softy\LOGDOWNLOAD\pull.tar" /log="E:\Logs\Trace\pull_%dtStamp%.log"

here i'm logging the details using log="E:\Logs\Trace\pull_%dtStamp%.log, this is option if you dont need

cheers
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Have you read these guides?
http://winscp.net/eng/docs/guide_automation
http://winscp.net/eng/docs/guide_schedule

If it does not help, please be more specific about the problems you are facing.
_________________
Martin Prikryl
SarahY
[View user's profile]

Joined: 2013-08-01
Posts: 2
Hi,

I am a beginner and would like to use Windows Task Scheduler to automatically download files (e.g. pdf files) from one location (root/logs folder) to another (user/sarah/documents/log). I have read the 'Schedule File Transfer' guide and have tried using the following in the 'add arguments' box:

/command "option batch abort" "option confirm off" "open ftp://user:password@IPaddress" "get /root/Logs/*.pdf C:\Users\Sarah\Documents\Log\" "exit"

Could you please advise me where I went wrong? Thanks.
SarahY
[View user's profile]

Joined: 2013-08-01
Posts: 2
SarahY wrote:
Hi,

I am a beginner and would like to use Windows Task Scheduler to automatically download files (e.g. pdf files) from one location (root/logs folder) to another (user/sarah/documents/log). I have read the 'Schedule File Transfer' guide and have tried using the following in the 'add arguments' box:

/command "option batch abort" "option confirm off" "open ftp://user:password@IPaddress" "get /root/Logs/*.pdf C:\Users\Sarah\Documents\Log\" "exit"

Could you please advise me where I went wrong? Thanks.


All fixed, turns out it should have been "Logs/*..." instead of "/root/Logs/..." Smile
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