Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page




Reference number: CH000210

When the computer boots I see 'Bad Command or File name'.

Issue:

When the computer boots I see 'Bad Command or File name'.

Cause:

The autoexec.bat or config.sys has a line that is improperly typed or missing. 

Solution:

To resolve this issue you will need to first determine which line in your autoexec.bat / config.sys is causing this issue. To do this we recommend that you do a step by step configuration which is an option in your Windows Startup menu:

Microsoft Windows 98 Startup Menu
=============================

1. Normal
2. Logged (\BOOTLOG.TXT)
3. Safe mode
4. Step-by-step confirmation
5. Command prompt only
6. Safe mode command prompt only

Enter a choice: 1

F5=Safe Mode Shift+F5=Command prompt Shift+F8= Step-by-step confirmation [N]

To get into this menu press F8 over and over as the computer is booting or when you see the computer indicate Microsoft Windows is starting.

In the startup menu choose option 4 for step-by-step confirmation. Once chosen, the computer will prompt you to say Yes or No to each command loaded for your computer. Say yes to each of these commands until you get the error. Once the error has been found, write down the line you said Yes to.

Once back into Windows, edit your autoexec.bat / config.sys, locate this file and either attempt to correct the line or type "REM " (with the space) in front of the line to remark (prevent) it from loading. Additional information about the autoexec.bat / config.sys can be found on our Autoexec.bat / Config.sys page.

Additional information:

 

 

 

 

Index

Category:
MS-DOS Q&A

Companies:
Microsoft

Related Pages:
Autoexec.bat
Config.sys

MS-DOS
Windows 3.x
Windows 95
Windows 98

 

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope