PDA

View Full Version : How To Change Filename In Dos



musicmaster
07-15-2004, 05:50 AM
I have a number of files that I cannot access in windows, and I cannot remember what exactly I need to do after I get into my DOS prompt to change the filename/s.

Any help would be appreciated.

The reason I need to change them this way is because they are too long when I created them back when I used my other computer... and for some reason I want to access them now, and cannot do so until I make the names shorter. The same thing happened when I wanted to delete some files of the similar length.

These happen to be filenames for mp3s and their corresponding folders.

Thanks.

tesco
07-15-2004, 05:59 AM
type:


rename driveletter:\folder\filename.fileextension newname.newfileextension

example:

rename C:\windows\notepad.exe renamednotepad.exe

:)

WolverineDK
07-15-2004, 01:56 PM
what about the ols dos command "ren " ? :)

musicmaster
07-17-2004, 06:06 PM
Originally posted by ROSSCO_2004@14 July 2004 - 22:07
type:


rename driveletter:\folder\filename.fileextension newname.newfileextension

example:

rename C:\windows\notepad.exe renamednotepad.exe

:)
Hey Rossco.... lemme add something specific... so maybe you can just go from there, because I didn't follow the protocol to change it. Here is the idea:

The original folder name is:

Dream Theater - International Christmas Fan Club - Christmas CD 1996

located in F:\Soulseek Files\Music\Dream Theater

I have already shortened the name of the folder itself, in Windows taking away the Dream Theater title and leaving it starting with International.

Now, I do have a problem which happens frequently as the filenames of a lot of my mp3s seem to be too long, causing them not to play or have me being able to change their names in Windows.

So, one of the tracks I am referring to in this particular folder is called:

Dream Theater - International Fan Club Christmas CD 1996 - 02 - Red Hill Mining Town

So, I would like to change that particular track name to read:

02 - Red Hill Mining Town

I cannot do it in Windows, so if you can give me the exact commands with the example inserted, I would understand it a bit easier.

Thanks for the help :) :) :)

fkdup74
07-18-2004, 05:55 AM
open dos...start>run>cmd
type in the drive letter you want to access, in this case its the F:\ drive
so your first entry is:
F:\
then give it the rename command:
rename F:\Soulseek Files\Music\Dream Theater\International Christmas Fan Club - Christmas CD 1996\Dream Theater - International Fan Club Christmas CD 1996 - 02 - Red Hill Mining Town.mp3 02 - Red Hill Mining Town.mp3

sparsely
07-18-2004, 06:19 AM
ren

Ariel_001
07-18-2004, 06:43 AM
This should help


Image Resized
[img]http://img2.exs.cx/img2/3843/ren1.jpg' width='200' height='120' border='0' alt='click for full size view'> ('http://img2.exs.cx/img2/3843/ren1.jpg')

musicmaster
07-21-2004, 10:12 PM
I would post a new topic... but I dont want to waste time and space.

I just tried all the above suggestions.... and worked with fkdup for a while on this... and it doesnt work.

I get an error message that says "the syntax of the command is incorrect"

Any suggestions?

Vargas
07-22-2004, 12:36 AM
remove all other files from that folder and run this batch file:

@echo off
f:
cd\SOULSE~1\Music\DREAMT~1\INTERN~1\
ren DREAMT~1.MP3 newname.mp3
^^ copy and paste into notepad and save as fixit.bat

DrSpud
07-22-2004, 12:55 AM
Originally posted by musicmaster@21 July 2004 - 18:13
I get an error message that says "the syntax of the command is incorrect"

Any suggestions?
You just need quotes around the file names!

ex: rename "F:\long folder name with spaces\file name.ext" "new file name.ext"


Easier than figuring out the dos names, too.

Vargas' suggestion (now removed :rolleyes: ) is certainly true for the real DOS, but the WinNT command prompt (read: DOS emulator) has been updated a bit.

Oh yeah, what 4play says ;)
|
V

4play
07-22-2004, 12:59 AM
try using the tab after typing a few letters it normally finishes the rest off for you that way. it adds the quote marks where needed as well.

shn
07-22-2004, 01:11 AM
All you need is a batch file renamer. It will rename all the files simultaneously to whatever you want. Google should be helpful in finding one, their pretty common.

edit - my spelling is sucky today. Butterfingers,.