Solved

change names of multiple files without changing extension.

Posted on 2004-08-22
13
690 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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
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.

896 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now