Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Im trying to format my c: hard drive using DOS. But when I type in the command format c: in the prompt area I get bad command or file name. What is the correct command to type or what is the best way to format my hard drive for a fresh install?

You don't need to use DOS, the XP CD does it all
To format from DOS you require a DOS bootable floppy or CD which has the 'format.com' command present - if it's not, you get the well known 'bad command or filename' message
Anyone in the XP forum could have told you - it's actually the best place to pose XP questions
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

I dont have the XP disc.... I was going to go back to 2000 and erase my whole drive. Ive gotten dos up and ready. Ive typed in format c: and it says that it cant do it in dos. I have the format.com copied to the floppy for boot up. What do I do now if it says that?

The W2K CD is bootable and has the neccessary tools, the W2K forum would of advised the same:
http://www.computing.net/windowsxp/wwwboard/forum/131384.html
DO NOT BAN THE MESSENGER

Good lord - - yes, it's the same thing, although one wonders why you're posting your OS as XP
Using DOS means you have to learn a thing or two - not much, but seemingly beyond some folks. Fortunately you have Windows to walk you through it
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

If you really want to use real dos:-
a) It is firdt worth checking out the dos command FDISK.
This can be used to remove old and/or setup new partions on your hdd.
I always enable LBA and use fat32 rather than ntfs
b) Then the dos command FORMAT is used.
I use:-
FORMAT C: /U /C
-----
for help, either enter
HELP
HELP command
command /?If help info greater than one screen, |MORE provides paging. e.g.
HELP FORMAT |MORE
Good luck - Keep us posted.

Well...
Either FORMAT is on the floppy or it isn't.
There's not much greu area there.
If it is, format c: /s is correct.
If it isn't, it's still the correct symtax, but you'll get the 'bad command or file name'
M2If at first you don't succeed, you're about average.

This is for XP but NT4/W2K3/W2K are similar:
http://support.microsoft.com/default.aspx?scid=kb;en-us;307848
DO NOT BAN THE MESSENGER

Oy. The correct command to type is FORMAT C:. However, you must look at your prompt. Are you at an A:\> prompt and getting the BAD COMMAND message? If so, that simply means the FORMAT program is not at the root of the floppy and the computer can't find it. If the program FORMAT was inside a folder called TOOLS on the A drive, you'd need to be at an A:\TOOLS> prompt for FORMAT to be found. So the question is - how do you search for the FORMAT program? To search your floppy, type DIR A:\FORMAT /S. This will search all subfolders on the A drive looking for FORMAT. If your CD-ROM drive is D:, you'd type DIR D:\FORMAT /S to find where FORMAT lives on the CD-ROM. Once found, use the CD command to change to that directory to finally run FORMAT. For example, assume FORMAT is on a CD-ROM in your D drive. At the A:\> prompt, type DIR D:\FORMAT /S. You may see now that FORMAT lives in a folder named WIN98. So, from the A:\> prompt type D: to switch to the CD-ROM drive. Now at the D:\> prompt, type CD WIN98 to switch to the WIN98 folder on the CD (where FORMAT lives). Now at the D:\WIN98> prompt, type FORMAT C:. Easy, right?
Of course, from an A:\> prompt, you could simply type D:\WIN98\FORMAT C: and that would work too.

![]() |
![]() |
![]() |

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