Windows Vista Forums

File Paths Too Long

  1. #1


    Join Date : Jun 2008
    Posts : 1
    Vista Home Premium 32bit
    Local Time: 14:08

    File Paths Too Long

    So I was having trouble moving some files around and I ended up with this:

    C:\Users\dg\kk\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Misc

    I can't get rid of any of that because it says I can't delete the desktop.

      My System SpecsSystem Spec

  2. #2


    R. C. White Guest

    Re: File Paths Too Long

    Hi, kelco333.

    Open an Administrator:Command Prompt and use the rd (Remove Directory)
    command with the /s switch. Read this whole message before you start
    because there are some gotchas. It's not clear just how many layers of
    "K\Desktop" you want to get rid of.

    In the Command Prompt window: CD C:\Users\dg\kk
    Then: rd desktop /s

    And answer Yes when it asks, are you sure.

    That should remove the top Desktop and everything from there down. Here's
    the first gotcha: Maybe you'd rather use:
    CD C:\Users\dg\kk\Desktop
    Then: rd K /s

    This would leave the top Desktop in place and delete the top "K" and
    everything below it. (The safest - and longest - procedure would be to
    navigate to the bottom subfolder and work your way up a layer at a time,
    verifying the contents of each subfolder before you wipe it out.)

    The other gotcha: I haven't tried deleting a Desktop folder and I haven't
    had this exact problem. I've often deleted folders (which used to be called
    directories), but not a Desktop folder. I THINK that if you delete the main
    Desktop, Vista will simply rebuild it for you - but I'm not sure.

    You will, of course, need to give yourself permission to deal with files and
    folders that belong to "dg". Even if dg is you, Vista still might insist on
    specific permission to delete dg's Desktop folder or its contents.

    Please be sure to report back what you learn about this.

    RC
    --
    R. C. White, CPA
    San Marcos, TX
    rc@xxxxxx
    Microsoft Windows MVP
    (Running Windows Live Mail 2008 in Vista Ultimate x64 SP1)

    "kelco333" <guest@xxxxxx-email.com> wrote in message
    news:cc501c38978347aeca9732187e0e49c1@xxxxxx-gateway.com...

    >
    > So I was having trouble moving some files around and I ended up with
    > this:
    >
    >
    > C:\Users\dg\kk\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Desktop\K\Misc
    >
    > I can't get rid of any of that because it says I can't delete the
    > desktop.
    >
    >
    > --
    > kelco333

      My System SpecsSystem Spec

File Paths Too Long

Similar Threads
Thread Forum
Any disk utilities to correct overly long file names/folder paths?
Hello, A company I work with has many folders nested within subfolders, within subfolders with really long folder names that when you go all the...
Server General
Windows 2008 and long paths
Hi! The Vista shell has some support for paths longer than MAX_PATH (260 chars): http://blogs.msdn.com/michkap/archive/2006/12/13/1275292.aspx ...
Server General
Removing long paths
Heya, I run into following problem - while trying to remove folder with long name (stored on networks and needs to be accessed by FQDN), Remove-...
PowerShell
Cannot delete filenames/paths too long!!
Hi! Please can someone help me? I do not know how this happened, but I have some folders on my pc that have repeatedly copied themselves over and...
Vista file management
Long paths
Ok, I have an access module which builds an index of directories in the subtree of a user-selected directory/drive. Then, it goes through those...
VB Script
Looking for function to resolve VirtualStore paths to physical paths
I'm working on ensuring compatibility with some legacy applications. I need an API function that maps a (possibly virtual) path into a physical...
Vista file management
Looking for function to resolve VirtualStore paths to physical paths
I'm working on ensuring compatibility with some legacy applications. I need an API function that maps a (possibly virtual) path into a physical...
Vista General