Computing.Net > Forums > Disk Operating System > I can't delete command.com! Help!!

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.

I can't delete command.com! Help!!

Reply to Message Icon

Name: Michael Allen
Date: September 14, 2002 at 20:37:25 Pacific
OS: None/DOS
CPU/Ram: 60/~4
Comment:

I am trying to trash the hard drive on an old computer so that I can start totally over again. How can I delete all contents of the drive? I am trying to delete command.com but it says access denied. I have tried attrib -r and deltree but it says bad command or file name! What do I do?

The OS was 3.1 but I booted up in dos and deleted the OS.

Michael



Sponsored Link
Ads by Google

Response Number 1
Name: Ronin
Date: September 14, 2002 at 21:37:35 Pacific
Reply:

Use a boot disk with format.com on it; at the dos prompt type

A:\>format [drive:]

Say you want to format drive D:

A:\>format d:

If you have just an upgrade version of dos disks, when the blue screen of setup starts, hit the F3 key to exit to the dos prompt and type

A:\>format C: /s

then restart the dos installation and choose "copy over old OS" or whatever it says.

If you're wanting to install later versions of windooze, just type format [drive:] without the /s.


0

Response Number 2
Name: Michael Allen
Date: September 14, 2002 at 21:50:49 Pacific
Reply:

Hey thanks for the reply. I tried your suggestion but it told me wrong DOS version. I don't know what to do...

Michael


0

Response Number 3
Name: Ronin
Date: September 14, 2002 at 21:59:47 Pacific
Reply:

Try making a boot disk from a windows machine if you've got one handy. Open a dos box and type

c:\windows>format a: /s enter key
cd\windows\command enter key
copy format.com A: enter key

Or put a disk in the a: drive, open "my computer" and right click on the a: drive icon. Select format, cleck of the add "system files" or whatever it is. After that, move to the windows\command folder and choose "copy" on the format.com file and then paste it into the a: drive.

Give that a try.


0

Response Number 4
Name: Mike Newcomb
Date: September 15, 2002 at 00:49:25 Pacific
Reply:

I disagree with the above.

1)Using dos, create a bootable floppy by:-

FORMAT A: /S /U /C

Then copy FORMAT.* and FDISK.* to it.

2)use this floppy to boot from on your pc.

3)Use FDISK to check the partition(s) and change if required.

4) Format the hdd concerned:-
FORMAT drive: /U /C

include option /S if you want to copy the system files to it.

Good luck - keep us posted.


0

Response Number 5
Name: Ben Cadieux
Date: September 15, 2002 at 11:43:07 Pacific
Reply:

Don't bother using the /U switch - there isn't even a clear understanding of what it is. Some people say it's a "low level" format (which is garbage). Others state that it "wipes the fat table" (which is also garbage, since every format wipes the fat). On floppies I've found that it seems to overwrite every sector - I'm not sure if this is the case for HDs. In any case it will make the format slower.

The /C command tests clusters. No point in using it on floppies since their clusters will be marked bad anyway. Also no point in using it on the hard drive unless it's had a virus.

Use "format c: /q /autotest" - that will do a quickformat which is identical to a standard format. The only way you couldn't use this is on a new partition which would need to be formatted slowly.

Btw, http://dos.li5.org/bd.exe for the self extracting version of techw0rm v5.4 (then double click install.com with a floppy in) --- that will create a boot floppy for you that will have everything you'll need.

Just use "skip startup" and then "nothing" to get to the dos prompt, type "format c: /q /autotest" and you're done.
- Ben Cadieux
- http://dos.li5.org


0

Related Posts

See More



Response Number 6
Name: Sonny
Date: September 15, 2002 at 13:27:49 Pacific
Reply:

You could also use a bootdisk of whatever os you intend to install (available at wwwbootdisk.com) and use fdisk to remove the old partitions and create the correct partion then use the format to get the correct format. Look here for instructions http://computing.net/howto/advanced/partition/


0

Response Number 7
Name: Peter
Date: September 15, 2002 at 15:19:41 Pacific
Reply:

Use DELTREE


0

Response Number 8
Name: Michael Allen
Date: September 15, 2002 at 17:52:16 Pacific
Reply:

OK I deleted all that was on my hard drive. Now how do I add it back/partition/format it? I kinda act and then think later...

Thanks for the help

Michael


0

Response Number 9
Name: fred6008
Date: September 17, 2002 at 04:58:24 Pacific
Reply:

FORMAT /U means an unconditional format which erases everything. There were quick formats and regular formats besides. Quick did little more than delete everything the way del does by deleting the first letter of a file and flagging it. Regular could be UNFORMATTED in DOS 6XX. Just what it did to permit this isn't clear to me. (There was no /U switch in DOS 4.00 and earlier. I'm not too sure about 5.0.)


0

Response Number 10
Name: Mike Newcomb
Date: September 17, 2002 at 21:49:07 Pacific
Reply:

My understanding of the /U option used with the FORMAT command, and why I recommended it when posting above is that it stands for 'unconditional'.

When using this option format runs quicker, because it does not save the information on the disc before formatting commences. This does mean however that the disc cannot be un-formatted.

Good luck - keep us posted.


0

Response Number 11
Name: jdshewey
Date: September 24, 2002 at 18:02:47 Pacific
Reply:

put in you're boot disk, get to the prompt and then type fdisk, then after partitioning it type format C:


0

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: I can't delete command.com! Help!!

I can't format my computer www.computing.net/answers/dos/i-cant-format-my-computer/13430.html

i lost my recovery disk now i can't get my puter to boot www.computing.net/answers/dos/i-lost-my-recovery-disk-now-i-cant-get-my-puter-to-boot/4755.html

Batch writers, I can't help! www.computing.net/answers/dos/batch-writers-i-cant-help/12675.html