regarding renaming files

  • Thread starter Thread starter chandu
  • Start date Start date
C

chandu

I want to rename some files with names acc-23,acc-58, acc-
79, etc.,(not in sequence) to acc-34,acc-35,acc-36,....
(i.e., in some sequence not starting from '1'). But XP
offers me to rename the files as acc ,acc (1), acc (2),
etc., which I don't want. Once I did like what I want to,
but didnot know how. ANY HELP WILL BE APPRECIATED.......
 
chandu said:
I want to rename some files with names acc-23,acc-58, acc-
79, etc.,(not in sequence) to acc-34,acc-35,acc-36,....
(i.e., in some sequence not starting from '1'). But XP
offers me to rename the files as acc ,acc (1), acc (2),
etc., which I don't want. Once I did like what I want to,
but didnot know how. ANY HELP WILL BE APPRECIATED.......

My advice is to simply forget about trying to convince XP to do the job --
it is not really up to the task. You might try to find a program called "The
Rename" by Hervé Thouzard. It is free although the author does ask that you
make a voluntary donation if you find the program useful. It can handle
almost any renaming that one might imagine and probably some more that
nobody has thought of yet. Some of the more complex naming functions are a
bit difficult to understand and the instructions are not the best but I do
use the program all the time and it does the job for me. And it does easily
handle sequential numbering...
--
John McGaw
[Knoxville, TN, USA]

Return address will not work. Please
reply in group or through my website:
http://johnmcgaw.com
 
Create two batch Files

Set X=0
for %%A IN (*.*) Do Call RenFile %%A


and call the second RenFile
set /a x=x+1
ren "%1" "%~n1%x%%~x1"

This will a an incrementing number to the end of the file name for all files in the folder it's run in.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top