Link to home
Start Free TrialLog in
Avatar of moranassoc
moranassoc

asked on

change names of multiple files without changing extension.

One of our software generates 3 files for each project with the extensions:
.mst
.pnd
.idx

Is there a way to batch change a set of files names without changing the extensions.

e.g. change files proj.mst, proj.idx, proj.pnd to 2proj.mst, 2proj.idx, 2proj.pnd without doing it individually.

tx
Avatar of infotrader
infotrader

can't you just create a batch file with the following line:

ren proj.* 2proj.*

- info
Avatar of moranassoc

ASKER

don't know how to create batch files. would appreciate a more detailed answer to my question.
tx
go to a command prompt (Start --> Run --> CMD)

type "ren proj.* 2proj.*"

or

use Notepad to create a file called rename.bat.   Open up rename.bat and insert the line "ren proj.* 2proj.*";  Close notepad;  and move the rename.bat to the directory where the files are located.

- Info
thanks but the steps provided don't seem to be shorter/quicker than highlighting the file and hitting F2 (or right click) to rename.

is there a true short cut, like an F2 that would minimize keystrokes?

tx

This is the one I use, Rename-it 3.1.  It's a small program, but very effective.
Go to this website and lookup   1193.  rname311.zip  

http://www.sac.sk/files.asp?name=UTILFILE&page=37&isnew=3&letter=
sorry, just tested F2 and it does rename without changing the extensions, though, it adds parenthesis to the file name to designate the 2nd (2), 3rd (3) file names. unfortunately, our software can't use the parenthesis.

if anyone has an answer to new file names that will not use the parenthesis, greatly appreciate.
Go to this website and lookup   1193.  rname311.zip  

http://www.sac.sk/files.asp?name=UTILFILE&page=37&isnew=3&letter=

1) After you download Rename-it, open it and locate the folder where the files are

2) In the left where is says "Search Mask"  change *.* to *.mst

3) checkmark "Make changes to prefix"

4) In "new Prefix" type 2

5) In "Place the new Prefix where?" click  Before

6) Go to Options at the bottom make whatever changes you want but make sure "Autoselect all files in directory" is marked.

7) Now just click on Rename-it

8) If any messages appear just click on yes or ok.
moranassoc,  if you don't mind me asking, were you able to solve your problem?
i have not tried the utility you provided above. since the files i need to rename come in sets of 3 and not in the tens or hundreds, i seem to be better off just renaming manually.

ASKER CERTIFIED SOLUTION
Avatar of tosh9iii
tosh9iii

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial