删除Windows文件名过长的文件或者目录
来源:互联网 发布:mysql如何改root密码 编辑:程序博客网 时间:2024/05/16 03:53
有时候下载一个压缩文件,解压缩后却无法删除这个解压缩的文件夹,
原因是文件名称过长。我就碰到过,例如在eclipse的一些版本的IDE,由于
java的命名的特性,文件名称过长,既无法重命名,无法复制,也无法删除。
具体有两种解决办法:
A. 进入windows命令行,到达文件所在目录,通过如下命令删除文件或者目录。
DIR /X
RMDIR /S 文件名或者目录
顺便学习下WINDOWS的基本命令行
----------------------------------------------------------------------------------------------------------------------------------------------------
DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:]sortorder]] [/P] [/Q] [/S] [/T[[:]timefield]] [/W] [/X] [/4]
[drive:][path][filename]Specifies drive, directory, and/or files to list.attributesD Directories R Read-only files H Hidden files A Files ready for archiving S System files - Prefix meaning not/BUses bare format (no heading information or summary)./CDisplay the thousand separator in file sizes. This is the default. Use /-C to disable display of separator./DSame as wide but files are list sorted by column./LUses lowercase./NNew long list format where filenames are on the far right./OList by files in sorted order.sortorder
N By name (alphabetic) S By size (smallest first) E By extension (alphabetic) D By date/time (oldest first) G Group directories first - Prefix to reverse order/PPauses after each screenful of information./QDisplay the owner of the file./SDisplays files in specified directory and all subdirectories./TControls which time field displayed or used for sortingtimefieldC Creation
A Last Access
W Last Written/WUses wide list format./XThis displays the short names generated for non-8dot3 file names. The format is that of /N with the short name inserted before the long name. If no short name is present, blanks are displayed in its place./4Displays four-digit years
RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path
B. 建立一个del.bat 文件,其内容如下:
"DEL /F /A /Q //?/%1
RD /S /Q //?/%1"
------------------------------------------------------------------------------------------------------------------------------------------------------------
DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
R Read-only files S System files H Hidden files A Files ready for archiving - Prefix meaning not
- 删除Windows文件名过长的文件或者目录
- 删除Windows文件名过长的文件或者目录
- 删除windows下过长路径的目录
- 删除文件名过长的办法
- 文件名过长/文件夹路径过长,无法删除文件夹/文件的解决办法
- 文件名过长文件夹路径过长,无法删除文件夹文件的解决办法
- 文件名过长/文件夹路径过长,无法删除文件夹/文件的解决办法
- 文件名过长/文件夹路径过长,无法删除文件夹/文件的解决办法
- 文件名过长/文件夹路径过长,无法删除文件夹/文件的解决办法
- 文件名过长/文件夹路径过长,无法删除文件夹/文件的解决办法
- 文件名过长无法删除
- 在windows server 2008上无法删除文件名过长的方法
- 文件目录过长导致无法删除
- ie7下载文件名过长的文件
- win10文件名或文件路径过长导致无法删除或复制的解决办法
- win10文件名或文件路径过长导致无法删除或复制的解决办法
- win10文件名或文件路径过长导致无法删除或复制的解决办法
- 获取目录下的所有文件名、删除文件、创建文件
- VS2005不能调试的问题与解决
- jQuery 中的filter 运用
- Dojo 的网络引用,前提是可以连入 Internet
- PHP写的MD5破解与加密程序
- Struts2系列——struts2的result
- 删除Windows文件名过长的文件或者目录
- 从EVC移植到VS2005的问题解决方法
- [总结] C语言的位操作技巧
- 2010年5月编程语言排行榜:Objective-C挺进Top 10
- 《ASCE1885的IT 笔试面试题》-- 0000 0000
- [转]《JMeter从入门到精通》之一——开始你的第一个JMeter脚本
- SubVersion服务器Windows安装指南
- 堆的管理
- ASP常用类之——纯真IP库使用类