Discussion Locked

MS-DOS

0 helpful
26 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

My co-worker was deleting files and accidentally deleted DOS. How do I get it back? He's running W98 SE. When you click on the MS-DOS prompt this is the error it gives "cannot find MS-DOS Prompt.pif.

Any help would be greatly appreciated.

26 replies

by dklippert

Go to start> Run and type "command" (without the quotes). If that doesn't work try "c:\command" or "c:\windows\command".

Once you've determined that dOS will run, create a new shortcut to start the DOS session.

by smithjj

I'd look for the Windows 98 .cab files and re-install Window 98. A little simpler is to go to your back up and look for command.com and copy that back.

It's not clear whether you just deleted command.com or the whole DOS directory. The more youdeleted, the more I say re-install Win98. It'll retain all your old application data.

by karlmac

I can't re-install windows. It hangs during the first step of installation when the cd checks your computer.

by isys

Make another shortcut to Command.com. That's all that .pif file was.

by karlmac

I have my command.com file. When I go to Start/programs/MS-DOS Prompt....I get a "Windows Cannot find MS-DOS".

Please help, I'm desperate.

by dklippert

Could you add a little more information about why these suggestions are not appropriate?

by karlmac

The command.com is in there. I get this message everytime I try to install windows 98 again. "Setup could not check the hard drive on your computer. You must check your drives before setup can continue.
To check drives, quit setup, shutdown to ms-dos mode and run scandisk /all from the command line. Then restart and run setup again."
It looks like we deleted a significant amount of files associated with DOS, even though I can see command.com, dosstart, doskey etc.... I'm missing something.

by dklippert

Try holding down the F8 key when booting the machine and choose to go to DOS.

One of these articles may have something you need.
(Type the Q number in the search box at support.microsoft.com)

Cannot Find the File 'C:\Windows\Exit to Dos.pif'...

Q193936

Computer Hangs When You Restart for the First Time During Setup

Q193156

How to Install Windows 98: Helpful Tips and Suggestions

Q188881

Description of Windows 98 Setup Process

Q195568

by ann777

Just reinstall Win98SE on top of the current installation. Any and all missing system files will be replaced from the reinstall. None of your applications will be affected by the reinstall; it will only add the missing files to the appropirate location(s).

by karlmac

Again, it won't let me re-install Win98SE. It hangs during "Preparing to run Windows 98 setup" process.

by thechas

If you are attempting the W98 re-install from Windows, the missing files are part of the scandisk problem.

Boot up with a W98 startup floppy, and begin the instalation from there.

If windows still cannot complete the scandisk, then you have hard drive problems.

Back up all critical files, wipe the hard drive, and start over again from fdisk.

by pinoy_teknik

pif file is only a shortcut with appropriate icon to its name.....and that shorcut have command line value..

So here are the step.

Right Click this file select properties.
At the program tab, the deffault should be C:\WINDOWS\COMMAND.COM if it is modified used the default.

click start, find files or folder
Find the command.com at the windows directory..if the file exist at the directory (not is windows subdirectory) Your MSDOS is now working.
Try it.

If the file does not exist...copy the command.com to c:\windows

Other way of going to MSdos is simply typing the command.com to the run. (means to say running the command.com)

Hope this can help..

by smithjj

Thanks for the added details. You definitely need to re-install Win98SE. You need to boot to DOS (use a boot disk) first, and then run the setup.exe on the install CD. The boot disk should have scandisk on it. If it doesn't, or if setup is looking for scandisk on the hard drive, copy scandisk to the appropriate place (floppy or windows directory on the harddisk). I think scandisk can be found on the install/recovery CD or on your back up disk(s).

I had a similar problem with my Win98 and I reinstalled it.

by jereg

Could the hidden files IO.SYS and MSDOS.SYS have been deleted? Those are hidden files on the root of c:. You should look for them and maybe check your recycle bin to see if you can restore any deleted files. And yes, try booting from a floppy. You'll get some control back and be able to run DOS commands. If this doesn't work there are a couple of other things you can try.

This discussion is closed to new replies.