删除或重命名长名称文件的解决方法

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了删除或重命名长名称文件的解决方法相关的知识,希望对你有一定的参考价值。

Workaround to remove or rename annoying files with long filenames
  1. REM map a temporary directory to the current path
  2.  
  3. subst T: .
  4. T:
  5.  
  6. REM rename the file
  7. rename "a-very-long-(over-200-characters-here)-name.doc" shortname.doc
  8.  
  9. REM or remove it
  10. del "a-very-long-(over-200-characters-here)-name.doc"
  11.  
  12. REM then detach the temp. drive
  13. C:
  14. subst T: /d

以上是关于删除或重命名长名称文件的解决方法的主要内容,如果未能解决你的问题,请参考以下文章