删除文件名以点(.)结尾的文件
2009 10 19 04:41 PM 2229次查看
分类:编程 标签:无
以前那台电脑也是因为出现这个问题,而不得已地把桌面文件夹都改路径了,免得看得心烦,不过这次我实在懒得改了,所以上网搜索了下。
最先搜到的是用这种方法,可惜没成功:
C:\Documents and Settings\Administrator\Desktop>rd CAK9UFKT..\创建的话却提示已有:
The directory name is invalid.
C:\Documents and Settings\Administrator\Desktop>md CAK9UFKT..\接着发现了8.3文件名的方法,但仍找不到文件:
A subdirectory or file CAK9UFKT..\ already exists.
C:\Documents and Settings\Administrator\Desktop>dir CAK9* /x /a最后终于记起要包含隐藏文件了,于是删除成功:
Volume in drive C has no label.
Volume Serial Number is 6806-ABBD
Directory of C:\Documents and Settings\Administrator\Desktop
10/19/2009 02:46 PM 0 CAK9UF~1 CAK9UFKT.
1 File(s) 0 bytes
0 Dir(s) 34,897,182,720 bytes free
C:\Documents and Settings\Administrator\Desktop>del CAK9UF~1
Could Not Find C:\Documents and Settings\Administrator\Desktop\CAK9UF~1
C:\Documents and Settings\Administrator\Desktop>del CAK9UF~1 /a
0条评论 你不来一发么↓