Solved

change names of multiple files without changing extension.

Posted on 2004-08-22
13
675 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
Comment Utility
can't you just create a batch file with the following line:

ren proj.* 2proj.*

- info
0
 

Author Comment

by:moranassoc
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:moranassoc
Comment Utility
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
Comment Utility
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
Comment Utility
moranassoc,  if you don't mind me asking, were you able to solve your problem?
0
 

Author Comment

by:moranassoc
Comment Utility
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
Comment Utility
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Occasionally Windows/Microsoft Updates will fail to update. We have found a code that will delete all temporary files and re-register all dll's related to Windows/Microsoft Updates! This works 99% of the time to get the updates working again! The…
Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 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

7 Experts available now in Live!

Get 1:1 Help Now