Computing.Net > Forums > Disk Operating System > creating a batch file to rename fil

creating a batch file to rename fil

Reply to Message Icon

Original Message
Name: corrington_j
Date: August 20, 2004 at 16:08:05 Pacific
Subject: creating a batch file to rename fil
OS: win xp pro
CPU/Ram: 900 mhz
Comment:

I am wondering if it is possible to create a batch file that could search a directory for all occurences of some string in file names and then replace that with a new string.

example
name_1.txt
name_2.txt
name_3.txt

i would like to be able to search for files with name in them, and replace name with something else.



Report Offensive Message For Removal


Response Number 1
Name: Mechanix2Go
Date: August 21, 2004 at 04:16:44 Pacific
Subject: creating a batch file to rename fil
Reply: (edit)

if exist name_1.txt ren name_1.txt new_1.txt

You can guess the rest.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: creating a batch file to rename fil

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge