We Recommend

Introduction to Programming using SML Introduction to Programming using SML
Provides a thorough introduction to the principles of programming and program design using the Standard ML programming language. Emphasis is putting the theory of programming into practice.


Posted By

vanne on 01/23/07


Tagged

windows dos


Versions (?)


Workaround to remove or rename files with long names


Published in: Other 


URL: http://ask.metafilter.com/mefi/31958

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

Report this snippet 

You need to login to post a comment.