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
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.
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 :)
Summary: I need a correct syntax for renaming the directory listing. I know how to do this in windows but how it in dos. I know it something like ren rename I don't know the correct syntax. I need to rename t...