Return to Snippet

Revision: 2251
at January 23, 2007 08:24 by vanne


Updated Code
REM map a temporary directory to the current path

subst T: .
T:

REM rename the file
rename "a-very-long-(over-200-characters-here)-name.doc" shortname.doc

REM or remove it 
del "a-very-long-(over-200-characters-here)-name.doc"

REM then detach the temp. drive
C:
subst T: /d

Revision: 2250
at January 23, 2007 08:20 by vanne


Initial Code
REM map a temporary directory to the current path and 

subst T: .
T:
rename "a-very-long-(over-200-characters-here)-name.doc" shortname.doc
REM or remove it 
del "a-very-long-(over-200-characters-here)-name.doc"
C:
subst T: /d

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

Initial Description
Workaround to remove or rename annoying files with long filenames

Initial Title
Workaround to remove or rename files with long names

Initial Tags
windows

Initial Language
Other