1.

Solve : select and open a folder by creation date in batch file. how???

Answer»

Hello everyone,

I need to create a BATCH file that select the last created folder from about 50 others, opens it and extract 2 archives inside it.
It sounds pretty SIMPLE but the PROBLEM is that i WONT know the folder name, i just know that if i order the folder by date created is the first on the list.
the folders have all this name type YYYYMMDD

Could u please help???
thanks in advanceCode: [Select]for /f "delims==" %%F in ('DIR /B /AD /OD /TC') do set newestfoldername=%%F



Discussion

No Comment Found