Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
well, actually I am using windows xp, and i would like to rename some certain files under dos command.
i am just wondering if someone can tell me how to do it.say i got files: hello-mp3.mp3
yalo-mp3.mp3
and i would like to rename those file to
hello.mp3
yalo.mp3
with loop and rename function.
thx you

The standard DOS procedure is:
ren abcdefgh.xxx mnopqrs.yyythat is: ren oldname.ext newname.ext
in your case:
ren hello-mp3.mp3 hello.mp3
It's as simple as that. DOS is VERY simple and straitforward, you'll see.

note that if you're using windows you may use spaces if you surround the filenames with quotes:
ren "hello bob.mp3" "bye bob.mp3"
- W0rm
- http://dos.li5.org

I have a similar need - How to I rename a fle so the new name contains the date & time of the file. For example, if the file is file.txt with a date of 06/21/2002 and time of 4:00:00 am The new file will be called 06/21/2002 4-00-00am file.txt. I also want to get the server name where the file is stored at the time fo the rename. So the new file name will be something like
Server 06/21/2002 4-00-00am file.txt
Any ideas

![]() |
Batch file, delete direct...
|
Modem 2 modem
|

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