Topic "Windows Scheduled task and script"

Author Message
jasonplp
[View user's profile]

Joined: 2012-04-23
Posts: 1
Location: Leeds
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
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?
Guest




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