Not sure about uses for hard links on Windows, but I do know a little about junction links (a.k.a. reparse points). They are similar to symbolic links to a directory on UNIX. Except that barely anything actually understands them so you have to be very, very careful. For example 'rm' on UNIX would delete the symbolic link. But on Windows doing the equivalent usually blindly
follows the junction link. The
Junction Link Magic website has some more information and provides an interface to make use of them (Windows certainly doesn't).
I have not seen it mentioned anywhere but I believe junction links are also used when mounting to a directory. When I was running out of disk space once I moved all of my graphics stuff off to a new drive and then mounted that to the old (now empty) directory to avoid breaking applications. Later on I started using Junction Link Magic. When I did a system scan for junction links my "mounted to a dir" filesystem showed up. Perhaps that is why Microsoft created them. Now if the rest of the OS/shell would understand them....
Note: If you want to account for junction links then using the full path to determine uniqueness would not work since a unique file can potentially be accessed from two or more different paths.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.