Invalid MS-DOS Function: How to Fix This File Error
Repairing the corrupted files can fix MS-DOS errors on your PC
- 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.
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
- Press Windows key + X and choose Windows Terminal (Admin).
- Run the following command:
sfc /scannow
- 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
- Right-click the Start button and choose Windows Terminal (Admin) from the menu.
- 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
- Wait for the scan to finish.
After the scan is finished, check if Invalid MS DOS function error is gone.
3. Modify the registry
- Press Windows key + R and enter regedit. Click OK.
- Navigate to the following path:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System
- Right-click the right pane and choose New. Next, select DWORD (32-bit Value).
- Name the new key CopyFileBufferedSynchronousIo and double-click it.
- Change the Value data to 1 and save the changes.
- 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.