Solved

change names of multiple files without changing extension.

Posted on 2004-08-22
13
699 Views
Last Modified: 2012-08-13
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
Comment
Question by:moranassoc
  • 4
  • 4
  • 2
13 Comments
 
LVL 11

Expert Comment

by:infotrader
ID: 11866512
can't you just create a batch file with the following line:

ren proj.* 2proj.*

- info
0
 

Author Comment

by:moranassoc
ID: 11866517
don't know how to create batch files. would appreciate a more detailed answer to my question.
tx
0
 
LVL 11

Expert Comment

by:infotrader
ID: 11866538
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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

Author Comment

by:moranassoc
ID: 11866552
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
 
LVL 9

Expert Comment

by:tosh9iii
ID: 11866557
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
 

Author Comment

by:moranassoc
ID: 11866565
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
 
LVL 9

Expert Comment

by:tosh9iii
ID: 11867173
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
 
LVL 9

Expert Comment

by:tosh9iii
ID: 11878329
moranassoc,  if you don't mind me asking, were you able to solve your problem?
0
 

Author Comment

by:moranassoc
ID: 11887357
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
 
LVL 9

Accepted Solution

by:
tosh9iii earned 50 total points
ID: 12069504
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question