How to rename a (too) long file name [duplicate]
Solution 1:
To rename a file with long file name you can try to rename it by using the short (8+3) windows name.
- open command prompt and find the directory with the file
- type dir /X
- this command will show the short 8+3 names followed by long names
-
find the file you want to rename and use command
rename "shortname" "newname"
"shortname" is 8+3 name and "newname" is name you want to rename to
Example: if you have a file named "verylongfilename.txt", it should have short name "verylo~1.txt" so you would use command
rename verylo~1.txt newname.txt
and should end up with file "newname.txt".