Filename or extension is too long

S

Surana

Hi,
I downloaded a file from the internet and it seems to have a weirdly
long name which Windows cannot handle.

None of the applications would be able to handle it. Right clicking on
the file does not give me any choices of delete, rename or copy.

If I try to rename or copy from the command prompt or via a batch file
I get the error.
"The filename or extension is too long"

I tried writing a simple C program to call unlink on the file but that
also does not help.

Just for clarification, the path to the file is small, its in "My
Documents" folder which is not too long. But the name of the file
itself is very long.

Please advise.
I would either want to rename a file to smaller name to use it or even
deleting is an option. But I cant hold it as an unusable file on my
disk.

thanks,
--abhishek
 
D

Detlev Dreyer

Surana said:
I downloaded a file from the internet and it seems to have a weirdly
long name which Windows cannot handle.

None of the applications would be able to handle it. Right clicking on
the file does not give me any choices of delete, rename or copy.

If I try to rename or copy from the command prompt or via a batch file
I get the error.
"The filename or extension is too long"

That's rather unlikely. Try the REN or DEL command at the command prompt
using the pattern "A*.ext" for that file provided that "A" is the first
letter of its file name and provided that this pattern is unique.
 
Joined
Mar 9, 2016
Messages
1
Reaction score
0
I am getting this same issue, i guess the best thing to do is to use a third party app like Long Path Tool. Just download it and use it to solve this issue. I hope this would help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top