How to open the last modified folder

Advertisement

whatever61
Guest

How to open the last modified folder

Hello all,

I am preparing a script that will download the latest backup to my PC from my SFTP.

I manage to get to the folder with the backups, but there the folder structure is like that:

BACK_17_03_2014
BACK_18_03_2014
BACK_19_03_2014

What I want is to open the LATEST folder (from there I will do "get *.*", that's no problem).

If that's not possible then I want to copy all the files from inside the folders with a specific filemask.
Example inside the folder BACK_17_03_2014, BACK_18_03_2014 and BACK_19_03_2014 there's a file called "xxx.rar", so I want to get all the xxx.rar files.

Reply with quote

Advertisement

You can post new topics in this forum