Find and Replace File Names

G

Guest

Guest
Archived from groups: microsoft.public.win2000.general (More info?)

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.
 
G

Guest

Guest
Archived from groups: microsoft.public.win2000.general (More info?)

You might try "Rename 'em" found here:
http://fileforum.betanews.com/detail/Rename_Em/1037464245/1
or, if you have Python installed, a script to do this would be trivial.
Louis

"Kamlesh" <Kamlesh@discussions.microsoft.com> wrote in message
news:A2BCC591-7E56-4020-87D8-B6962661B418@microsoft.com...
> 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.
>
>
>
 
G

Guest

Guest
Archived from groups: microsoft.public.win2000.general (More info?)

"Kamlesh" <Kamlesh@discussions.microsoft.com> wrote in message
news:A2BCC591-7E56-4020-87D8-B6962661B418@microsoft.com...
> 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"
 

TRENDING THREADS