Topic "Timestamp variable"

Author Message
madkins
[View user's profile]

Joined: 2014-04-16
Posts: 1
Location: Tampa, FL
I am trying to script out a job to get files that are at least X minutes old. I see the method of grabbing file attributes and using that as a mask, but I am failing to understand where I could specify $transferOptions.FileMask = ("*>" + $(Get-Date -f "yyyyMMddHHmmss")+5) or something like that.


Any thoughts or suggestions?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
See similar example for Session.PutFiles at:
http://winscp.net/eng/docs/faq_script_modified_files#when_destination_directory_does_not_contain_old_files
_________________
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