linkd questions

  • Thread starter Thread starter phavel
  • Start date Start date
P

phavel

Guest
Hi, I am looking to use linkd to solve a copying issue. Is there any way to
get an overall view of all the links that have been created on a system, and
likewise is there any way to remove a link once it has been created (other
than destroying the source directory). I know there are ways around the
latter, just wondering if there about what options I have with this. Thanks.
 
Re: linkd questions


"phavel" <phavel@discussions.microsoft.com> wrote in message
news:49403048-003F-47C4-8C8F-29B29C04A22A@microsoft.com...
> Hi, I am looking to use linkd to solve a copying issue. Is there any way
> to
> get an overall view of all the links that have been created on a system,
> and
> likewise is there any way to remove a link once it has been created (other
> than destroying the source directory). I know there are ways around the
> latter, just wondering if there about what options I have with this.
> Thanks.


You can obtain a list of all existing links with this command:
dir /ad /s | find /i "<junction>"

To see how to delete a link, type "linkd /?".
 
Re: linkd questions

Thanks, I see the /D option but is there a way to remove the link without
deleting the source folder?

"Pegasus (MVP)" wrote:

>
> "phavel" <phavel@discussions.microsoft.com> wrote in message
> news:49403048-003F-47C4-8C8F-29B29C04A22A@microsoft.com...
> > Hi, I am looking to use linkd to solve a copying issue. Is there any way
> > to
> > get an overall view of all the links that have been created on a system,
> > and
> > likewise is there any way to remove a link once it has been created (other
> > than destroying the source directory). I know there are ways around the
> > latter, just wondering if there about what options I have with this.
> > Thanks.

>
> You can obtain a list of all existing links with this command:
> dir /ad /s | find /i "<junction>"
>
> To see how to delete a link, type "linkd /?".
>
>
>
 
Re: linkd questions

The /D option does NOT delete the folder that contains your data. It only
deletes the symbolic (junction) folder. You should run your own test to see
how it works.


"phavel" <phavel@discussions.microsoft.com> wrote in message
news:A580411E-32BE-4CA8-8D31-96634B9C45A6@microsoft.com...
> Thanks, I see the /D option but is there a way to remove the link without
> deleting the source folder?
>
> "Pegasus (MVP)" wrote:
>
>>
>> "phavel" <phavel@discussions.microsoft.com> wrote in message
>> news:49403048-003F-47C4-8C8F-29B29C04A22A@microsoft.com...
>> > Hi, I am looking to use linkd to solve a copying issue. Is there any
>> > way
>> > to
>> > get an overall view of all the links that have been created on a
>> > system,
>> > and
>> > likewise is there any way to remove a link once it has been created
>> > (other
>> > than destroying the source directory). I know there are ways around
>> > the
>> > latter, just wondering if there about what options I have with this.
>> > Thanks.

>>
>> You can obtain a list of all existing links with this command:
>> dir /ad /s | find /i "<junction>"
>>
>> To see how to delete a link, type "linkd /?".
>>
>>
>>
 
Re: linkd questions

I have run my own tests and it does delete the source folder. The help
provided by "/?" supports this as well - "Deletes Source, regardless of
whether a link exists at
source", and I've also seen references on the web to people using this
option to forcefully delete otherwise hard-to-delete folders.

I do appreciate the accusation of not trying before asking though. Geesh.


"Pegasus (MVP)" wrote:

> The /D option does NOT delete the folder that contains your data. It only
> deletes the symbolic (junction) folder. You should run your own test to see
> how it works.
>
>
> "phavel" <phavel@discussions.microsoft.com> wrote in message
> news:A580411E-32BE-4CA8-8D31-96634B9C45A6@microsoft.com...
> > Thanks, I see the /D option but is there a way to remove the link without
> > deleting the source folder?
> >
> > "Pegasus (MVP)" wrote:
> >
> >>
> >> "phavel" <phavel@discussions.microsoft.com> wrote in message
> >> news:49403048-003F-47C4-8C8F-29B29C04A22A@microsoft.com...
> >> > Hi, I am looking to use linkd to solve a copying issue. Is there any
> >> > way
> >> > to
> >> > get an overall view of all the links that have been created on a
> >> > system,
> >> > and
> >> > likewise is there any way to remove a link once it has been created
> >> > (other
> >> > than destroying the source directory). I know there are ways around
> >> > the
> >> > latter, just wondering if there about what options I have with this.
> >> > Thanks.
> >>
> >> You can obtain a list of all existing links with this command:
> >> dir /ad /s | find /i "<junction>"
> >>
> >> To see how to delete a link, type "linkd /?".
> >>
> >>
> >>

>
>
>
 
Re: linkd questions

You're jumping to conclusions. I fully tested what I wrote BEFORE I wrote
it. Here is what I did:
1. Open a Command Prompt.
2. Type this command:
linkd c:\Test e:\Backup
(c:\Test did not exist. E:\Backup is a populated folder.)
Response: "Link created at C:\Test".
(C:\Test now shows the contents of e:\Backup)
3. Type this command:
linkd c:\test /d
Response: "The delete operation suceeded".
Result: C:\test has disappeared. E:\backup still exists.

I recommend you try this yourself, as I said before, then report the result
seen on your machine.


"phavel" <phavel@discussions.microsoft.com> wrote in message
news:9E3FD5CE-A0F5-41B5-A1FF-B4044F0B23A7@microsoft.com...
>I have run my own tests and it does delete the source folder. The help
> provided by "/?" supports this as well - "Deletes Source, regardless of
> whether a link exists at
> source", and I've also seen references on the web to people using this
> option to forcefully delete otherwise hard-to-delete folders.
>
> I do appreciate the accusation of not trying before asking though. Geesh.
>
>
> "Pegasus (MVP)" wrote:
>
>> The /D option does NOT delete the folder that contains your data. It only
>> deletes the symbolic (junction) folder. You should run your own test to
>> see
>> how it works.
>>
>>
>> "phavel" <phavel@discussions.microsoft.com> wrote in message
>> news:A580411E-32BE-4CA8-8D31-96634B9C45A6@microsoft.com...
>> > Thanks, I see the /D option but is there a way to remove the link
>> > without
>> > deleting the source folder?
>> >
>> > "Pegasus (MVP)" wrote:
>> >
>> >>
>> >> "phavel" <phavel@discussions.microsoft.com> wrote in message
>> >> news:49403048-003F-47C4-8C8F-29B29C04A22A@microsoft.com...
>> >> > Hi, I am looking to use linkd to solve a copying issue. Is there
>> >> > any
>> >> > way
>> >> > to
>> >> > get an overall view of all the links that have been created on a
>> >> > system,
>> >> > and
>> >> > likewise is there any way to remove a link once it has been created
>> >> > (other
>> >> > than destroying the source directory). I know there are ways around
>> >> > the
>> >> > latter, just wondering if there about what options I have with this.
>> >> > Thanks.
>> >>
>> >> You can obtain a list of all existing links with this command:
>> >> dir /ad /s | find /i "<junction>"
>> >>
>> >> To see how to delete a link, type "linkd /?".
>> >>
>> >>
>> >>

>>
>>
>>
 
Re: linkd questions

"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:%23Kjjb4UGJHA.1268@TK2MSFTNGP05.phx.gbl...
> You're jumping to conclusions. I fully tested what I wrote BEFORE I wrote
> it. Here is what I did:
> 1. Open a Command Prompt.
> 2. Type this command:
> linkd c:\Test e:\Backup
> (c:\Test did not exist. E:\Backup is a populated folder.)
> Response: "Link created at C:\Test".
> (C:\Test now shows the contents of e:\Backup)
> 3. Type this command:
> linkd c:\test /d
> Response: "The delete operation suceeded".
> Result: C:\test has disappeared. E:\backup still exists.
>
> I recommend you try this yourself, as I said before, then report the
> result seen on your machine.


It's confusing that LINKD calls the junction the 'source'. The
'destination' does not get deleted when using LINKD /d.

However, it is important to make the potential dangers of using Junction
Points clear. I had a pretty bad accident a few years ago, and it was too
late to realise what had happened, before I overwrote the disk space with
other data.

If you are deleting things on a drive you are clearing, in Explorer, you
WILL lose the data that any Junction Points are pointing to.

eg. Make junction point, pointing to some test directory. Then, delete
that junction point in Explorer. Then empty the Recycle Bin. Your data in
the destination directory is now gone.

It's important to have Users only read-only access to Junction Points. I
prefer to use the Sysinternals JUNCTION command.

ss.
 
Back
Top