VB Script to read latest file updated
Posted on 2013-11-20
I have a folder as c:/temp
in temp folder I have files created at different time stamp for example file1.txt is created @ 11:05:10 and another file2.txt created @ 11:06:03 and file3.txt created @ 11:07:04.
I need to write a vb script that can check the latest time stamp file from the c:/temp folder and provide me the name of the latest file.txt name.
for example file3.txt is latest updated @ 11:07:04 so VB script will display the name as file3.txt