如果当您尝试在Windows 11或 Windows 10 中移动、删除、复制或重命名文件/文件夹时收到Invalid MS-DOS Function错误消息, 那么您可能会对这篇文章感兴趣。在这篇文章中,我们将确定一些可能触发错误的潜在已知原因,然后提供您可以尝试帮助修复此问题的可能解决方案。
这实际上是一个文件系统错误,通常只影响文件功能。如果您尝试将文件从NTFS格式驱动器移动到FAT32格式驱动器,您也可能会遇到错误,并且损坏的系统文件也可能触发错误。
无效的 MS-DOS 函数文件错误
如果您遇到此无效的 MS-DOS 功能(Invalid MS-DOS Function) 问题,您可以尝试以下我们推荐的解决方案(不分先后顺序),看看是否有助于解决问题。
- 运行 CHKDSK
- 缩短您要复制的文件的名称
- 优化和整理您的驱动器
- 以NTFS(NTFS)格式格式化目标驱动器
- 创建和配置CopyFileBufferedSynchronousIo注册表项。
让我们看一下与列出的每个解决方案相关的过程的描述。
1]运行CHKDSK
使用CHKDSK也是一种被证明可以有效解决无效 MS-DOS 功能(Invalid MS-DOS Function)问题的解决方案。
要运行 CHKDSK,请执行以下操作:
按 Windows 键 + R。
在“运行”对话框中,键入cmd,然后按CTRL + SHIFT + ENTER以在管理员/提升模式下打开命令提示符。(open Command Prompt)
在命令提示符窗口中,键入以下命令并按 Enter。
chkdsk /x /f /r
您将收到以下消息:
Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked the next time the system restarts? (Y/N).
按键盘上的Y键,然后重新启动计算机,让CHKDSK检查并修复计算机硬盘上的错误。
CHKDSK完成后,检查问题是否已解决。
2]缩短(Shorten)您正在复制的文件的名称
在此解决方案中,当您尝试在Windows 10中移动、删除、复制或重命名文件/文件夹时,只需缩短文件名即可帮助解决错误。
如果此修复不起作用,您可以尝试下一个解决方案。
3]优化(Optimize)和整理(Defragment)您的驱动器
您可以使用Windows管理单元工具来优化和整理计算机上的硬盘驱动器。您可以按照以下步骤来完成这项工作:
- 同时按Windows键 + E 打开文件资源管理器(File Explorer)。
- 单击这台电脑(This PC)。
- 右键单击(Right-click)驱动器,然后选择Properties > Tools > Optimize > Optimize。
程序完成后,重新启动您的 PC 并检查无效的 MS-DOS 功能(Invalid MS-DOS Function )问题是否已解决。如果没有继续下一个解决方案。
4]以NTFS格式格式化(Format)目标驱动器
如果目标驱动器未格式化为新技术文件系统(New Technology File System)( NTFS ),您可能会遇到无效的 MS-DOS 功能(Invalid MS-DOS Function)错误。在这种情况下,您可以将目标驱动器转换为 NTFS,看看是否有帮助。
就是这样:
使用这些步骤转换驱动器将保留驱动器上的文件。我们仍然建议您确保备份驱动器上的所有文件。
找到要转换的驱动器号。打开文件资源管理器(Open File Explorer),然后在左侧窗格中,在此 PC(This PC)或计算机(Computer)下查找驱动器。
按(Press)Windows徽标键 + R 打开“运行”(Run)对话框。
键入cmd并按Enter打开命令提示符窗口。
在命令行提示符下,键入以下命令并按Enter 键(Enter)。用驱动器的实际字母替换(Replace)驱动器:占位符。(drive:)
convert drive: /fs:ntfs
格式化过程完成后,再次尝试文件操作并查看问题是否已解决。如果没有继续下一个解决方案。
5] 创建和配置CopyFileBufferedSynchronousIo注册表项
一些用户说他们可以通过在注册表编辑器(Registry Editor)中编辑系统策略来解决无效的 MS-DOS 功能(Invalid MS-DOS Function)问题。就是这样:
由于这是一项注册表操作,因此建议您备份注册表(back up the registry)或创建系统还原点以防出现问题。
采取必要的预防措施后,您可以进行以下操作:
按 Windows 键 + R.
在“运行”对话框中,键入regedit并按 Enter打开注册表编辑器。
导航或跳转到下面的注册表项路径:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System
右键单击(Right-click)右窗格中的空白区域,然后选择New > DWORD (32-bit) Value。
将值名称重命名为CopyFileBufferedSynchronousIo,然后按 Enter。
双击(Double-click)新值将其打开。
在数值(Value)数据框中 键入1 ,然后按(1)Enter 保存更改。
您现在可以退出注册表编辑器(Registry Editor)并重新启动您的 PC。在启动检查时,问题是否已解决。
这些解决方案中的任何一个都可以为您解决问题吗?(Any of these solutions should fix the issue for you?)
Fix Invalid MS-DOS Function file error on Windows 11/10
If when you trу to moνe, delete, copy оr rename files/foldеrs in Windows 11 or Wіndows 10 and you rеcеive the Invalid MS-DOS Function error message, then this post might interest you. In this post, we will identify some potential known causes that can trigger the error and then provide the possible solutions you can try to help remediate this issue.
This is actually a file-system error that often influences the file functionality only. You could experience the error also if you try to move a file from an NTFS format drive to a FAT32 format drive and a corrupt system file can also trigger the error.
Invalid MS-DOS Function file error
If you’re faced with this Invalid MS-DOS Function issue, you can try our recommended solutions below in no particular order and see if that helps to resolve the issue.
- Run CHKDSK
- Shorten the name of the file that you’re copying
- Optimize and Defragment your drive
- Format the destination drive in NTFS format
- Create and configure CopyFileBufferedSynchronousIo registry key.
Let’s take a look at the description of the process involved in relation to each of the listed solutions.
1] Run CHKDSK
Using CHKDSK is also one solution that is proved to be effective to fix the Invalid MS-DOS Function issue.
To run CHKDSK, do the following:
Press Windows key + R.
In the Run dialog box, type cmd and then press CTRL + SHIFT + ENTER to open Command Prompt in admin/elevated mode.
In the command prompt window, type the command below and press Enter.
chkdsk /x /f /r
You will receive the following message:
Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked the next time the system restarts? (Y/N).
Press the Y key on the keyboard and then reboot your computer to let CHKDSK to check and fix the errors on the computer hard drive.
After CHKDSK completes, check to see if the issue is resolved.
2] Shorten the name of the file that you’re copying
In this solution, simply shortening the file name could help resolve the error when you try to move, delete, copy or rename files/folders in Windows 10.
If this fix doesn’t work, you can try the next solution.
3] Optimize and Defragment your drive
You can use the Windows snap-in tool to optimize and defragment the hard drive on your computer. You can follow these steps to do the job:
- Press Windows key + E at the same time to open File Explorer.
- Click This PC.
- Right-click on the drive and then select Properties > Tools > Optimize > Optimize.
Once the procedure completes, restart your PC and check if the Invalid MS-DOS Function issue is resolved. If not continue with the next solution.
4] Format the destination drive in NTFS format
If the destination drive is not formatted as New Technology File System (NTFS), you may encounter the Invalid MS-DOS Function error. In this case, you can convert the destination drive to NTFS and see if that helps.
Here’s how:
Converting a drive using these steps will preserve the files on the drive. We still recommend making sure you have backups of all files on the drive.
Find the letter of the drive you want to convert. Open File Explorer, and in the left pane, look for the drive under This PC or Computer.
Press the Windows logo key + R to open the Run dialog box.
Type cmd and hit Enter to open the command prompt window.
At the command line prompt, type the command below and hit Enter. Replace the drive: placeholder with the actual letter of the drive.
convert drive: /fs:ntfs
Once the format process completes, try the file action again and see if the issue is resolved. If not continue with the next solution.
5] Create and configure CopyFileBufferedSynchronousIo registry key
Some users said that they were able to resolve the Invalid MS-DOS Function issue by editing system policy in Registry Editor. Here’s how:
Since this is a registry operation, it’s recommended you back up the registry or create a System Restore Point in case something goes wrong.
Once you have taken the necessary precautionary measures, you can proceed as follows:
Press Windows key + R.
In the Run dialog box, type regedit and press Enter to open Registry Editor.
Navigate or jump to the registry key path below:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System
Right-click on the blank space on the right pane and then select New > DWORD (32-bit) Value.
Rename the value name as CopyFileBufferedSynchronousIo and hit Enter.
Double-click on the new value to open it.
Type 1 in the Value data box and press Enter to save the change.
You can now exit Registry Editor and restart your PC. On boot check, if the issue is resolved.
Any of these solutions should fix the issue for you?