可能的重复:
如何强制 Windows XP 使用特殊字符重命名文件?
如何在 Windows 下删除名称中带有冒号的(无效)文件
我想删除一个名为workspaces\google-gson-1.7.1-release.zip
Yes的文件,它在名称中包含一个反斜杠。
这里是:
G:\>dir Z_DRIVE
Volume in drive G is samsung
Volume Serial Number is 48B9-7E1D
Directory of G:\Z_DRIVE
04/06/2012 08:09 PM <DIR> .
04/06/2012 08:09 PM <DIR> ..
05/01/2011 02:21 PM 528,016 workspaces\google-gson-1.7.1-release.zip
1 File(s) 528,016 bytes
2 Dir(s) 88,400,478,208 bytes free
Run Code Online (Sandbox Code Playgroud)
第一次尝试是从 Windows 资源管理器中删除它,但它说它找不到该文件。
然后,我从命令行尝试:
G:\>del Z_DRIVE\workspaces\google-gson-1.7.1-release.zip
The system cannot find the file specified.
Run Code Online (Sandbox Code Playgroud)
而且,在互联网上进行了一些研究之后,我还尝试了以下方法,但没有运气:
G:\>del \\?\G:\Z_DRIVE\workspaces\google-gson-1.7.1-release.zip
The system cannot find the file specified.
Run Code Online (Sandbox Code Playgroud)
除了从一些 Linux CD 启动之外,有没有办法摆脱这个文件?
2012 …