wrong Command. com file

June 29, 2012 at 10:11:18
Specs: MS-DOS 6.22, Pentium-MMX ~200MHz
Hello,

I installed dos6.22 on my computer a long time ago, and when I did it I used a 6.21 command.com (don't ask me why lol) When I try to swap it out for a 6.22 command.com it said access denied, so I booted it from a boot disk and it still denied me access. Any way to load the correct command.com without completely reinstalling everything?

Thanks


See More: wrong Command. com file

Report •

#1
June 29, 2012 at 13:04:53
You can't replace command.com while it's being used. It's always being used in the Dos operating system the computer has loaded.

When you boot from the boot disk, if it has the correct Dos 6.22 command.com on it, you need to specify that the command.com on the hard drive is to be replaced with the one on the boot disk, on the command line

E.g. type this at the A:/ prompt:

Copy command.com (from the location on the boot disk) C:\the location on the hard drive where the existing command.com is).

The last time I used Dos 6.2 was in 2000 or 2001, so I'm a little unsure where command.com is on the hard drive.
I have Dos 6.22 on floppies but I've never installed it.

It's either in the root folder on the hard drive.....

....assuming command.com is in the root folder on the boot disk - A:\command.com, it's listed when you type dir /as at the A:/ prompt

The /as command line switch when used with dir = list files with a system file attribute.
When you type dir by itself hidden and system files are not listed by default.
Command.com has both the system and hidden attributes.

Copy command.com C:\
or
Copy command.com C:\command.com


or it's in the \Dos directory on the hard drive

Copy command.com C:\Dos
or
Copy command.com C:\Dos\
or
Copy command.com C:\Dos\command.com

If command.com on the boot disk is not in the root folder, you need to specfiy where it is on the boot disk

E.g.

Copy A:\(path to) \command.com on the boot disk C:\(path to command.com you want to replace)

Copy A:\(folder name)\command.com C:\
or
Copy A:\(folder name)\command.com C:\command.com

or
Copy A:\(folder name)\command.com C:\Dos
or
Copy A:\(folder name)\command.com C:\Dos\
or
Copy A:\(folder name)\command.com C:\Dos\command.com



Report •

#2
June 29, 2012 at 19:18:38
It may have a read-only attribute that prevents you from deleting or copying over it.

Use your 6.22 bootdisk and make sure the 6.22 version of ATTRIB command is on it. Boot up with it and at the a:\> prompt type

ATTRIB_-S_-H _-R_C:\COMMAND.COM and enter.

Then type

COPY_A:\COMMAND.COM_C:\ and enter.

(THE UNDERLINES IN THE 2 COMMANDS REPRESENT SPACES. SO WHEREVER THERE'S AN UNDERLINE PUT A SPACE IN INSTEAD)

It'll ask about copying over the version on C:. Answer Yes. That should do it. Remove the bootdisk and restart the computer.


Report •

#3
July 3, 2012 at 04:04:50
You may also need the correct IO.SYS and MSDOS.SYS installed to your hard drive.
Therefore, if you have a bootable MS-DOS 6.22 floppy disk, make sure, that it also contains a file named SYS.COM. Best is to put it to the root folder of drive A:

Then boot your computer from floppy disk and simply type in at the A:\ prompt:
sys c:

This command installes the 3 necessary boot files to your hard drive C:

DON'T MISS THE COLON AT THE DRIVE LETTER !!!


Report •

Related Solutions

#4
July 7, 2012 at 16:21:28
Yep, I'd agree that the three files ought to be replaced.

Isn't it command sys C: from a floppy?

Hang up and live.


Report •

#5
July 8, 2012 at 07:28:41
Jefro

yes as mentioned in #3.
Generally, you can copy this 4 files to any other drive, excepts the drive, you want to make bootable. And necessary, the files must be copied to the root folder.
IO.SYS
MSDOS.SYS
COMMAND.COM
SYS.COM

E.g.
I copy the 4 files to my USB stick, that is drive letter F:, switch to F:and give the command
sys c:

The 3 files IO.SYS, MSDOS.SYS and COMMAND.COM will be copied to C: to the root folder.


Report •

Ask Question