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

Similar Threads
Thread Forum
Hard drive hard at work -> slow down issue
I have been experiencing this issue on a regular basis ever since I got my Vista desktop. Recently I upgraded to Windows 7 and the problem persists. ...
General Discussion
Paragon Hard Disk Manager Suite & USB External Hard Drive
Gday I have emailed Paragon and am awaiting there reply, but you guys seem to know a lot more and try and solve the problem :) Up to this point...
Crashes and Debugging
SBS 2003 crashing when removing the external usb hard drive
I have a client when he uses the eject usb hard drive and removes the external usb hard drive, the SBS server crashes. I would like a resolution to...
SBS Server
Removing External USB Hard Drives while the server is up.
I have a user who uses USB external hard drives for backup drives and when this client tries to swap the hard drives, the server locks up. The...
SBS Server
Sending a link, unable to select "send a link"
I have upgraded to Vista and IE 7 and I found the mail button was not longer on the toolbar. I followed the help article and added the "read mail"...
Vista General
D-Link DIR-655, Intel WiFi Link 4965a/g/n, Vista and 802.11n
Our home network consists of the subject line , a Windows Pro XP laptop, Windows XP home desktop (both of these are wired to the router); no...
Vista networking & sharing
removing associated Norton files form windows security as it still appears in security centre after removing from registry, application common folders etc
Can anyone explain how to remove Norton from the secuirty centre? I have uninstalled and cleaned folders and registry etc. Where does secuirty...
Vista security