Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Creating a batch script to rename image files
Name: rigel2112 Date: July 18, 2009 at 00:45:34 Pacific OS: Windows Vista Subcategory: General
Comment:
I am trying to create a script to rename image files to simply a number sequence(####.jpg). I want it to ask what number to start from then rename all the files in the directory from that number on. So far I have this:
@Echo Off setLocal EnableDelayedExpansion set /p incr=Enter the starting number: for %%f IN (*.jpg) do ( set incr=!incr! ren "%%f" "!incr!.jpg" set /A incr+=1 )
And it sorta works. The problem is it sometimes starts at the number specified and sometimes it starts at the next number. I need this to be precise since the numbers have to correspond with database entries. What is wrong? Or is there a better way to do this?
Summary: Hi, I need to create a batch file as a shortcut for the follwong command path: i. Open Command window. ii. Change directory to f:\exc\fp iii. Type f:\foxpro\foxprox fprodsta It should execute the foll...
Summary: Hello, I am trying to create a batch file to run from a text file that creates a folder and then within the folder it creates a blank text file called the town for each entry.. i.e My text file conta...