Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guest

ignore that - a bit of research and i've sorted that issue out
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?
jasonplp

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