Computing.Net > Forums > Disk Operating System > how to rename files in subfolders

how to rename files in subfolders

Reply to Message Icon

Original Message
Name: tomy
Date: September 30, 2004 at 10:24:30 Pacific
Subject: how to rename files in subfolders
OS: DOS
CPU/Ram: P4
Comment:

Hi every one :)

I want to know how to rename files in subfolders using DOS command?

E.X I have foder called My music under it I have 80 folders (artist name) , each folder have *.ram files .
I want to rename all of *.ram files to *.rm.

Tomy


Report Offensive Message For Removal


Response Number 1
Name: Rick McNabb
Date: September 30, 2004 at 12:49:31 Pacific
Reply: (edit)

You can use rename *.ram *.rm - you will have to be in the folder or specify it. I do not think the native DOS commands will rename in multiple sub-folders otherwise.


Report Offensive Follow Up For Removal

Response Number 2
Name: Mechanix2Go
Date: October 1, 2004 at 00:24:13 Pacific
Reply: (edit)

Hi,

Rick is correct.

OBW

1. There are no folders in DOS. There are files, directories and not much else.

2. If you have directories created by w9x/NT they will be truncated by DOS. So your "my music" will probably show as "mymusc~1" or similar.



Report Offensive Follow Up For Removal

Response Number 3
Name: tomy
Date: October 1, 2004 at 03:32:18 Pacific
Reply: (edit)

that is mean I should go inside all folders and issue this command

ren *.ram *.rm

I will do it 80 times :(

Thanks
Tomy


Report Offensive Follow Up For Removal

Response Number 4
Name: jubalsams
Date: October 1, 2004 at 21:55:52 Pacific
Reply: (edit)

There is a way: XCOPY
Example;

XCOPY C:\ABC\*.ram C:\FIN\*.rm /S

(one line above)
Then delete the old files. One might think that this would be slower than rename, not so.

Best


Report Offensive Follow Up For Removal

Response Number 5
Name: tomy
Date: October 10, 2004 at 10:48:21 Pacific
Reply: (edit)

jubalsams thanks alot , it work with me and this is what I want :)

thank you again

Tomy


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: how to rename files in subfolders

Comments:

 


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




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge