Find and Replace File Names

G

Guest

Is there any inbuilt command or utility in Windows (9x, NT, 2000, XP) which
accepts a Directory Name, Find String and Replace String as a input. And it
replaces all the File Names where the "Find String" exists.

I want to do a Mass Find and replace in a directory.
Example: In my directories, I have some files like:

DSG-001.doc
DSG-002.doc
DSG-003.doc

The utility should find "DSG" and change it to "USR". The new file names
should be:

USR-001.doc
USR-002.doc
USR-003.doc

Please let me know if you have any solutions for this. Any
freeware/shareware which does this job is also OK for me.
 
P

Pegasus \(MVP\)

Kamlesh said:
Is there any inbuilt command or utility in Windows (9x, NT, 2000, XP) which
accepts a Directory Name, Find String and Replace String as a input. And it
replaces all the File Names where the "Find String" exists.

I want to do a Mass Find and replace in a directory.
Example: In my directories, I have some files like:

DSG-001.doc
DSG-002.doc
DSG-003.doc

The utility should find "DSG" and change it to "USR". The new file names
should be:

USR-001.doc
USR-002.doc
USR-003.doc

Please let me know if you have any solutions for this. Any
freeware/shareware which does this job is also OK for me.

- Start a Command Prompt.
- Type this command:
ren "c:\Some Folder\Some Subfolder\DSG*.doc" "USR*.doc"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top