Topic "upload only .zip files that are older than 2 days"

Author Message
sumation

Guest


hi All,

how can i do a script in WinSCP that uploads .zip files that are more than 2 days old
thanks
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Use put *.zip<2D

See
http://winscp.net/eng/docs/scriptcommand_put
http://winscp.net/eng/docs/file_mask
Guest






============
============
This is what i did not sure if correct because it does notwork.

option batch abort
option confirm off
put *.zip<1D C:\
exit
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Quote:
This is what i did not sure if correct because it does notwork.

option batch abort
option confirm off
put *.zip<1D C:\
exit

It's difficult to help you if you do not tell us "what does not work".
Anyway, the script lacks open command.
_________________
Martin Prikryl
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