Invalid MS-DOS Function: How to Fix This File Error
Repairing the corrupted files can fix MS-DOS errors on your PC
3 min. read
Updated on
Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more
Key notes
- 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.
User forum
0 messages