Click to See Complete Forum and Search --> : BAT file to rename all files in a directory


Neeraj
July 17th, 1999, 12:41 PM
I need to make a program if u have any idea pl. write to me.
I have some files in a directory, each file name is of four character like ABCD,PQRS etc.

Rename each file as
name+year+month+day+time+.in
name+99+07+17+1807+.in

like ABCD as ABCD9907171807.in

first extract the date and time of file creation then changes it's name or for first file extract the date and time of file creation then changes it's name and for other files year and date will be same but increase the time so that
every file name will be unique name.

BAT file will accept a argument (the directory name)For first file get the date & time of file creation. then change all file names in directory in the given pattern.

Thanks in advance

Bob8788
May 18th, 2008, 02:58 PM
I use InnoRename to rename my huge picture files from my photo and my mp3 files too.
Great program to try (find it there www.innoplanet.com).
It can be programed and you can do a lot of combination easily.
Try it.

dglienna
May 18th, 2008, 03:06 PM
Could write a VBA script using the File System Object

PeejAvery
May 18th, 2008, 03:07 PM
Welcome to the forums, Bob8788. Please remember to make your posts more relative. This thread is 9 years old.