• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 752
  • Last Modified:

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
0
moranassoc
Asked:
moranassoc
  • 4
  • 4
  • 2
1 Solution
 
infotraderCommented:
can't you just create a batch file with the following line:

ren proj.* 2proj.*

- info
0
 
moranassocAuthor Commented:
don't know how to create batch files. would appreciate a more detailed answer to my question.
tx
0
 
infotraderCommented:
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
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
moranassocAuthor Commented:
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

0
 
tosh9iiiCommented:
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=
0
 
moranassocAuthor Commented:
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.
0
 
tosh9iiiCommented:
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.
0
 
tosh9iiiCommented:
moranassoc,  if you don't mind me asking, were you able to solve your problem?
0
 
moranassocAuthor Commented:
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.

0
 
tosh9iiiCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 4
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now