Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21246

Reading files in a specific directory by date creation and renaming them

$
0
0
Hi everyone , i need help from the Pros here in vb .
I need a code that look into a specific directory and start renaming the files in that directory by creation date and hours .
this is an example of what i need .
file 1 : gjrgrlytyyl.jpg (date of creation : 1.1.2014 00.00) -> 1.jpg (date of creation : 1.1.2014 00.00)
file 2 : agrteeyyl.jpg (date of creation : 1.1.2014 00.01) -> 2.jpg (date of creation : 1.1.2014 00.01)


i have been looking in google in many posts by a similar code to adapt and i could not find a code that could read date and hours of creation and start renaming the files . :confused:

honestly i don't even know how to start .
anyone here know a simple code for this ?
thank you all for this nice forum .

Viewing all articles
Browse latest Browse all 21246

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>