Windows Vista Forums

Removing a hard link
  1. #1


    uSlackr Guest

    Removing a hard link

    I was doing some testing with mklink today. I'm looking to move a
    (non-system) folder from C: to my new data drive. I used mklink /j
    C:\c_test e:\e_test to create a link. I noticed that when I deleted
    c:\test, the contents of e:\test were also deleted. I expected this given
    the definition of hard link. I was confused that e:\Test was not also
    deleted.

    But, my real question is, once I create a hard link, how can I remove it
    without deleting the target? In my example, how can I remove C:\c_test
    without removing E:\e_test.



    Thanks

    \\Greg


      My System SpecsSystem Spec

  2. #2


    uSlackr Guest

    Re: Removing a hard link

    I hate to answer my own questions because it means I wasn't done researching when I asked...

    You can use fsutil to do this:

    fsutil reparsepoint delete c:\c_test

    I suspect there is a more obvious solution. Please share if you know.

    \\Greg



    "uSlackr" <Gmartin@xxxxxx> wrote in message news:#$WZEEpGKHA.1252@xxxxxx

    > I was doing some testing with mklink today. I'm looking to move a
    > (non-system) folder from C: to my new data drive. I used mklink /j
    > C:\c_test e:\e_test to create a link. I noticed that when I deleted
    > c:\test, the contents of e:\test were also deleted. I expected this given
    > the definition of hard link. I was confused that e:\Test was not also
    > deleted.
    >
    > But, my real question is, once I create a hard link, how can I remove it
    > without deleting the target? In my example, how can I remove C:\c_test
    > without removing E:\e_test.
    >
    > Thanks
    >
    > \\Greg
    >

      My System SpecsSystem Spec

Removing a hard link problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
SBS 2003 crashing when removing the external usb hard drive FSN Tech SBS Server 2 05 Nov 2009
Removing External USB Hard Drives while the server is up. FSN Tech SBS Server 4 05 Nov 2009
Sending a link, unable to select "send a link" usmech Vista General 6 08 Jan 2009
D-Link DIR-655, Intel WiFi Link 4965a/g/n, Vista and 802.11n lzdesert Vista networking & sharing 1 14 Jul 2007
removing associated Norton files form windows security as it still appears in security centre after removing from registry, application common folders etc Billy Vista security 1 04 Feb 2007