Rename files myFile0001.jpg to myFile1.jpg

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
squadjot
Posts: 4
Joined: 17 Dec 2009 13:14

Rename files myFile0001.jpg to myFile1.jpg

#1 Post by squadjot » 19 Jan 2010 13:38

Hi i have a undefined amount of files looking like this

myFile0001.jpg
myFile0002.jpg
myFile0003.jpg
etc.

i would like to remove the zeros, so that the files will look like this instead:

myFile1.jpg
myFile2.jpg
myFile3.jpg
--
etc
--
myFile4562.jpg
myFile4563.jpg
myFile4564.jpg

How to do that?

note: In example it's 3 zeros... but could be larger/smaller amount of prefix zeros..

squadjot
Posts: 4
Joined: 17 Dec 2009 13:14

#2 Post by squadjot » 19 Jan 2010 15:57

I found out that i could output my files named the way i want, so i don't actaully need answer to my question.

//J

Post Reply