Delete a file where the name is too long

I was running my Liferay server and a file was generated in my temp directory that was so long Windows wouldn’t delete it via Windows Explorer.  As a matter of fact, when I’d try to click on it in Windows Explorer it would crash Explorer.

I have unxutils installed on my computer and tried everything I could think of – finally, I returned to the almighty oracle (aka the googles) and found that you just need to do:

“del *” and it will take care of the rest.  Next time, I won’t try to be smarter than the computer running “rm -fr *.*” or moving or renaming… just del.  Now I know.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: