Topic "Timestamp variable"

Author Message
[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?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
See similar example for Session.PutFiles at:
Martin Prikryl

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License