Windows Scheduled task and script

Advertisement

jasonplp
Joined:
Posts:
1
Location:
Leeds

Windows Scheduled task and script

Hi,

I'm new to FTP and WinSCP.. i want to create a script which will update a remote site automatically at a certain time each day.

I've written a text file called example1.txt with the following:

option batch abort
option confirm off
open ftp://user:password@domain
option transfer binary
cd \remote folder\
put \local folder\
close
exit

Then i've created a windows scheduled task which is currently set to run winscp.exe at 13:00 each day, where do i add the command for it to run the text file so that it automatically updates the remote folder?

Thanks

Reply with quote

Guest

ok i've figured out where to put the code but now i have a related issue.

This will be a very basic question to most but if i'm wanting to upload all files from my local folder to the remote folder what's the right code?
is this correct...
option transfer binary
cd \remote folder\
put \local folder\

or is it the other way round and 'put \remote folder' instead?

Reply with quote

Advertisement

You can post new topics in this forum