Simple automatic script to upload modified files

Advertisement

ezekiel
Guest

Simple automatic script to upload modified files

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,070
Location:
Prague, Czechia

Re: Simple automatic script to upload modified files

Please read documentation. If that does not help, come back.
_________________
Martin Prikryl

Reply with quote

Guest

Re: Simple automatic script to upload modified files

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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,070
Location:
Prague, Czechia

What you are doing is not scripting. Anyway use /defaults parameter.
_________________
Martin Prikryl

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum