Topic "Simple automatic script to upload modified files"

Author Message
ezekiel

Guest


First like to say this is an amazing program.

Secondly, I know next to nothing about commands or scripting. I would, however, like to be able to upload a few small files on a regular basis to my ISPs free webspace. I know how to send the files using the programs GUI but I need to send these files about ever 30 min and doing it manually is not an option really.

So, I would like to send a the contents of a folder, to my webspace (and overwrite the files there, they have same filenames), every 30 minutes, without have to do 'anything' (completely automated). Is this possible? The file sizes are very small (367kb for all 11 files) so I don't think that should be a problem.

Could someone kindly write me a simple script as I've read though this site and I don't don't have to know how to put one together myself. Then I assume I can use Windows Scheduler to run the script ever 30 minutes?

Thank you in advance for any help and again, I'm very grateful for this program.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Please read documentation. If that does not help, come back.
_________________
Martin Prikryl
Guest




I need to write the same script, I'm working in WinXP sp3 with WinSCP 4.2.7

I created a batch file with a commandline in the form:

%fullprogrampath% /WinSCP.exe {User}:{Pass}@{Host} /keepuptodate %fulllocalpath% %fullremotepath%

But the program ends up opening a confirmation/select options window. I tried to add the command

/options confirm off

before the keepuptodate command but with no result, also I rummaged with the option window and unchecked all the options that sounded like "confirm when", but with no result.

Thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
What you are doing is not scripting. Anyway use /defaults parameter.
_________________
Martin Prikryl
Guest




Thanks.
smittylube
[View user's profile]

Joined: 2010-10-14
Posts: 11
Location: US
this sounds maybe like what I'm trying to do with these files -- [ 'f:/cam images/' [ '/home/sslube2/public_html/cam images/' ] ] in both locations only one jpg file exists.

http://winscp.net/forum/viewtopic.php?t=8999
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