Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista file management

Vista - Removing a hard link

Reply
 
Old 08-11-2009   #1 (permalink)
uSlackr


 
 

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
Old 08-11-2009   #2 (permalink)
uSlackr


 
 

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
Quote:

> 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
Reply

Thread Tools


Similar Threads
Thread Forum
Sending a link, unable to select "send a link" Vista General
start up menus and hard drive thinking too hard Vista hardware & devices
D-Link DIR-655, Intel WiFi Link 4965a/g/n, Vista and 802.11n Vista networking & sharing
Upgrading the hard drive when there is only one slot for a hard dr Vista hardware & devices
removing associated Norton files form windows security as it still appears in security centre after removing from registry, application common folders etc Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46