How to fix the bad command or file name boot error
To resolve this issue, you need to first determine what line in your autoexec.bat and 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
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 occurs, write down the line.
Once back into Windows, edit your autoexec.bat and config.sys, locate this file and either correct the line or type "REM " (with the space) in front of the line to remark (prevent) it from loading.