Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Moving file with a specific modified date

mbaybarsk wrote:

mv *.*>=%TIMESTAMP#yyyy-mm-dd% 11:00<=%TIMESTAMP#yyyy-mm-dd% 11:01

This is correct. Just you need to close the mask to double-quotes as it contains spaces:

mv "*.*>=%TIMESTAMP#yyyy-mm-dd% 11:00<=%TIMESTAMP#yyyy-mm-dd% 11:01"
mbaybarsk

Moving file with a specific modified date

Hi Folks,

I'm completely new to WinSCP scripting and I need to come up with a filemask that needs to select files that were created/modified exactly between 11:00 AM and 11:01 AM.

I wonder if this would work:


mv *.*>=11:00<=11:01

OR do I need to have a date before the time?

If yes, can I use %TIMESTAMP% such as:

mv *.*>=%TIMESTAMP#yyyy-mm-dd% 11:00<=%TIMESTAMP#yyyy-mm-dd% 11:01

Thanks,
B