There are several MS-DOS® and Windows® command line errors."Bad command or file name" is one of them. This error is usually caused by misspelling a command or if the command entered by you is not a valid command for your version of MS-DOS® or Windows®. It was started in the BASIC interpreters of the 1980s and denotes a "syntax error" message. The main reasons behind this error can be:
If you encounter "Bad command" error, follow the given recommendations:
Follow the given steps to fix this issue
STEP 1. Locate which line that is mistyped in your autoexec.bat or config.sys that's causing this issue.
STEP 2. In Windows® Startup menu, choose step-by-step confirmation.
STEP 3. Once chosen, the computer will prompt you to say “Yes or No” to each command stored for your computer.
STEP 4. Say yes to each of these commands, until you find the error. Once you locate the error, write down the line you said Yes to.
STEP 5. Edit your autoexec.bat / config.sys, once you get back to Windows®. Find the file and try to correct the line.
If you are still unable to fix this issue, we at iYogi, provide highly professional Microsoft® customer services online. iYogi is the world’s fastest growing provider of comprehensive direct to consumers and small business remote tech support. iYogi’s global tech experts located globally provide a new approach to solve problems and help customers.
Our extremely skilled technical experts assist you to get rid of any software or hardware related problem. Amongst the pioneers, we provide software/hardware upgrade and installation. We make sure that each customer ends calls only when the problem is resolved.
We make use of the latest available software and technology to solve your particular problems. You can get the answers of all your queries by just dialing iYogi number or on a simple chat with our certified tech experts. With our never to sleep offer, we provide customer services as per your convenience. We give proper attention to each and every call to provide the best available online customer services for Microsoft®.
iYogi offers a comprehensive range of services to keep your PCs, home networks and peripherals running at peak performance.
![]()
Amazon & Walmart choose iYogi
iYogi named Top 100 Global Company
Comprehensive support for PC’s, Printers, MP3 Players, Digital Camera and over 100 software applications.
Get iYogi technical help right now.
Online computer support is simple. You give us the green-light to connect to your computer remotely and we will fix your PC while you kick back and relax.
Learn more about online computer repair