VB Script: Dynamically rename files based on last date modified.
Posted on 2015-02-24
I am looking for a script that rename files in a specific folder based on the lastdatemodified
Result after I run the script
Imagine that I modifie now File 1 and I re-run the script.
The result should be the following:
Additionally I would like to add the following log loops (for errors, I would like to output a log.txt file):
1-If folder path doesn't finish "\" add a back slash.
2- If the folder setup in which the script should rename the files doesn't exist echo.Wscript "the Folder with the following path doesn't exist"
3-If the files.count=0 echo.Wscript "Folder doesn't contains files to rename"