5 posts in this topic

Posted

On my WD external drive, I had backed up a my Ubuntu home folder, from ages ago. I don't need it, so I want to delete it. The problem is, that when I try to delete it, it says "The file name you specified is invalid or too long".

I tried to delete it using the rmdir /s command, but it failed as well.

Share this post


Link to post
Share on other sites

Posted

Linux allows more characters in filenames than Windows does, so you might be running into problems with the filename.

Two options come to mind.
1. Use the "shortname" from a Windows(DOS) command prompt. This is the name that has the tilde in it, and and limited to the "8 plus 3" filename, like "progra~1"
2. Boot your Ubuntu LiveCD and delete it from there.

Share this post


Link to post
Share on other sites

Posted

If you use dir /x it will show the shortnames in the command prompt.

Share this post


Link to post
Share on other sites

Posted

With that kind of error message, you certainly would like to try using Long Path Tool to delete that. I have been having that kind of problem and someone referred me to this site: http://longpathtool.com/ and it did work :) I had it downloaded and loved the free trial.

Share this post


Link to post
Share on other sites

Posted

I always keep a Linux LiveCD for things like this. Usually Puppy these days.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.