Luis Diaz
asked on
VB Script: Drill down in order to get the most recent folder in a Root folder and most recent file in the folder
Hello experts,
I have a root folder C:\Root which contains multiple folder, I am looking for a procedure in order to;
1-Drill down root folder and get the most recent folder based on creation date (with wscript.echo.FolderName).
2-Once the most recent folder is found get the most recent file based on creation date in the most recent folder(with wscript.echoFileName).
The drill down process will be just done in C:\Root folder level.
Thank you very much for your help.
I have a root folder C:\Root which contains multiple folder, I am looking for a procedure in order to;
1-Drill down root folder and get the most recent folder based on creation date (with wscript.echo.FolderName).
2-Once the most recent folder is found get the most recent file based on creation date in the most recent folder(with wscript.echoFileName).
The drill down process will be just done in C:\Root folder level.
Thank you very much for your help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Last question if I want to copy the most recent file into an specific sheet in excel I now that we can use Microsoft Scripting runtime.
What Should I add in order to open the most recent file select all the content and copy it in a reference worksheet?
Thank you again for your help.
What Should I add in order to open the most recent file select all the content and copy it in a reference worksheet?
Thank you again for your help.
ASKER
I added my final script used in which I copy most recent folder to a destination folder.
Thank you again for your help.
Open in new window