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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

how to rename files in subfolders

Reply to Message Icon

Name: tomy
Date: September 30, 2004 at 10:24:30 Pacific
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



Sponsored Link
Ads by Google

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

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.


0

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

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.



0

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

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

ren *.ram *.rm

I will do it 80 times :(

Thanks
Tomy


0

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

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


0

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

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

thank you again

Tomy


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: how to rename files in subfolders

Rename files in DOS - How? www.computing.net/answers/dos/rename-files-in-dos-how/8486.html

how to rename a directory in DOS www.computing.net/answers/dos/how-to-rename-a-directory-in-dos/5381.html

how to compress files in DOS www.computing.net/answers/dos/how-to-compress-files-in-dos/11671.html