↓
 

Computer Aid

Ph: 0402 133 866

  • Home
  • Blog
  • Contact
  • Web Services
    • Websites
    • SEO
    • Hosting
    • Domain Names
    • Portfolio
Home→Tags name you specified

Tag Archives: name you specified

The name you specified is not valid or too long

Computer Aid Posted on 24 April, 2013 by Luigi Martin24 April, 2013

I recently did some data recovery for someone who “accidentally” re-installed Windows 7.

I managed to recover about 80% of the data.

But the data recovery program that I used got caught in a loop, so some recovered folders ended up about 30 or 40 sub-folders deep

This type of scenario often shows what shortcuts Microsoft take when designing their OS…

In this case, I was using Windows XP.

When I tried to copy a whole recovered folder tree, I would get the error:

The name you specified is not valid or too long

It was soon obvious that XP has a short internal buffer for storing a folder path.

The filesystem (NTFS) could easily create virtually unlimited folder depths, but windows explorer (and possibly the underlying OS itself, could not cope with something like:

C:recoveryDocuments and SettingsuserAppdataRoamingMicrosoftWindowsLibrariesOfficeOutlookLocalTemporary Internet FilesIE5.6WindowsMicrosoftAppdataOfficeOutlookLocalIE1.2Temporary Internet FileswindowsuserAppDataMicrosoftRoaming..

Anyway, you get the message.

Since I couldn’t copy these files and folders, I should just delete them, right?

But deleting them gave the error: The name you specified is not valid or too long.

error-deleting-file

So what do I do now?

I had a hunch that the buffer was just used to store the full path name (ie the long string of folders above), so if I renamed the folders to a shorter name, it might fit into the XP buffer, and I can finally delete them.

It turns out I was right.

I had about 50 folder paths to rename, but I eventually got them all to be shorter. Using the above as an example, I just renamed each folder using the first character in its name ie:

c:rduarmwlooltiwmaoolitwuamr

Sure, it looks crazy, but the overall length means I could finally delete the offending files and folders.

I’m sure that if I looked hard enough, I would have found a windows explorer equivalent that didn’t have the same restrictions… but given the time constraints, it was just easier to just spend 30 minutes renaming the folders (its really fast if you use keyboard shortcuts like: F2=rename folder, and arrow keys,  spacebar, enter key, all at the correct time.

Posted in Technical | Tagged name you specified, not valid, too long

Archives

Categories

Recent Comments

  • Sue Jones on outlook error 0X800ccc0e while sending emails
  • Blair Newmann on AdSmartMedia advertising
  • Private Investigator in GTA on Divorce, consent orders, and superannuation splits: getting the wording correct

Tags

802.11g ADSL amd android bigpond broadband bsod defender dell email exitjunction firefox firewall gmail Google google contacts ie7 infection internet connection ISP laptop Linux m1188a ntldr is missing office 2007 outlook outlook express password power supply problems ram registry repair install sata scam slow telstra thunderbird usb vista wifi windows 7 wireless wordpress xp
Copyright © 2005-2015 Computer Aid
↑