Tuesday, July 17, 2018

Can't delete Linux folder in Windows / Dos - no 8.3 filename

Same problem as this question - Can't delete folder in Windows 7 - I have a folder I created in Ubuntu, and from Windows I cannot delete the folder. "Could not find this item: This is no longer located in G:\Graphics. Verify the item's location and try again."


The difference is that answers to the other question and all the other help on the net recommends using dir /x from the command line in order to get the 8.3 filename and then using rd - but my folder does not have an 8.3 filename. Here's the results of dir /x:


EDIT: Unobfuscated parent directory and the problem directory name. I see there's a space at the end... however, if I try rename without the space, Windows Explorer complains.


D:\UCT\Link\>dir /x
Volume in drive D is Data
Volume Serial Number is EEF3-CDDB
Directory of D:\UCT\Link\
2011/03/16 10:42 AM
.
2011/03/16 10:42 AM
..
2011/02/28 03:34 PM
2010DD~1 Obfuscated Directory 1
2011/01/27 01:12 PM
201101~1 Obfuscated Directory 2
2011/03/16 08:40 AM
201101~2 Obfuscated Directory 3
2011/03/04 09:12 AM
201102~1 Obfuscated Directory 4
2011/02/07 10:04 PM
201102~2 Obfuscated Directory 5
2011/03/10 04:32 PM
201103~1 Obfuscated Directory 6
2011/03/14 05:09 PM Obfuscated Directory 7
2011/03/12 02:47 PM Obfuscated Directory 8
2010/12/14 05:01 PM BDNETW~1 Obfuscated Directory 9
2011/03/12 02:51 PM Obfuscated Directory 10
2011/03/12 02:51 PM 20110311 Data Capture Templates
2011/03/11 01:45 PM NETWOR~1 Obfuscated Directory 12
2011/03/16 10:33 AM SAMPLE~1 Obfuscated Directory 13
2011/03/12 02:51 PM TEMPLA~1 Obfuscated Directory 14
0 File(s) 0 bytes
16 Dir(s) 224 967 278 592 bytes free

As you can see a number of these directories have no 8.3 file name, and when I try use rd with the long file name I get the following:


D:\UCT\Link\>rd "20110311 Data Capture Templates "
The system cannot find the file specified.

Despite missing 8.3 filenames on a number of the other directories, all also created in Ubuntu, it's only this folder that has problems.

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...