Invalid MS-DOS Function: How to Fix This File Error

Repairing the corrupted files can fix MS-DOS errors on your PC

by Milan Stanojevic
Milan Stanojevic
Milan Stanojevic
Windows & Software Expert
Milan has been enthusiastic about technology ever since his childhood days, and this led him to take interest in all PC-related technologies. He's a PC enthusiast and he... read more
Reviewed by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • Repairing the system files can often help with Command Prompt errors such as this.
  • In some cases, it might be necessary that you modify your registry in order to fix this problem.
invalid ms dos function
XINSTALL BY CLICKING THE DOWNLOAD FILE
To fix Windows PC system issues, you will need a dedicated tool Fortect is a tool that does not simply clean up your PC, but has a repository with several millions of Windows System files stored in their initial version. When your PC encounters a problem, Fortect will fix it for you, by replacing bad files with fresh versions. To fix your current PC issue, here are the steps you need to take:
  1. Download Fortect and install it on your PC.
  2. Start the tool's scanning process to look for corrupt files that are the source of your problem
  3. Right-click on Start Repair so the tool could start the fixing algorythm
  • Fortect has been downloaded by 0 readers this month.

Advanced PC users use Command Prompt to perform commands quickly, but many reported an Invalid MS DOS function error while trying to do that.

In case you’re not familiar with this feature, we have a great guide that will explain what DOS Command Prompt is, so be sure to check it out.

To tackle this issue, it’s important to understand what causes it, so keep reading to find out everything you need to know.

Why does an Invalid MC DOS function message appear?

There are several reasons for this issue, but the most common are the following:

  • File corruption – Corrupted system files or corrupted data might cause this issue to appear.
  • Registry configuration – If your registry isn’t configured properly, you might encounter this error.

How do I fix Invalid MS DOS function?

Fixing this issue is relatively simple, but before we do that, make sure you try the following:

  • Use Safe Mode Access Safe Mode on your PC and check if this problem appears. If not, it means there’s an issue with your settings or user profile.

1. Run the SFC command

  1. Press Windows key + X and choose Windows Terminal (Admin).
  2. Run the following command: sfc /scannow
  3. Wait for the process to finish.

Once the command is finished, check if the problem is still there. In case you’re not able to run SFC or if it didn’t fix the issue, run these two commands as well:

DISM.exe /Online /Cleanup-image /Scanhealth

DISM.exe /Online /Cleanup-image /Restorehealth

2. Run chkdsk scan

  1. Right-click the Start button and choose Windows Terminal (Admin) from the menu.
  2. Now enter the following command, and be sure to replace X with the letter that matches the drive that is giving you this error: chkdsk X: /f

  3. Wait for the scan to finish.

After the scan is finished, check if Invalid MS DOS function error is gone.

3. Modify the registry

  1. Press Windows key + R and enter regedit. Click OK.
  2. Navigate to the following path: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System
     
  3. Right-click the right pane and choose New. Next, select DWORD (32-bit Value).
  4. Name the new key CopyFileBufferedSynchronousIo and double-click it.
  5. Change the Value data to 1 and save the changes.
  6. Restart your PC.

These are just some of the solutions that can help you fix an Invalid MS DOS function error on your PC. In most cases, the issue is related to file corruption.

If you’re having more issues, we suggest reading our can’t run CMD as an administrator guide for more potential solutions.

What method did you use to fix this issue? Share it with us in the comments section below.

Still experiencing issues?

SPONSORED

If the above suggestions have not solved your problem, your computer may experience more severe Windows troubles. We suggest choosing an all-in-one solution like Fortect to fix problems efficiently. After installation, just click the View&Fix button and then press Start Repair.

This article covers:Topics: