Windows Vista Forums

File Paths Too Long

  1. #1



    Newbie
    Join Date : Jun 2008
    Posts : 1
    Vista Home Premium 32bit
    Local Time: 04:29 AM

    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.   


  3. #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? Server General
Windows 2008 and long paths Server General
Removing long paths PowerShell
Cannot delete filenames/paths too long!! Vista file management
Long paths VB Script