{"id":285,"date":"2006-11-18T21:18:02","date_gmt":"2006-11-18T21:18:02","guid":{"rendered":"http:\/\/neosmart.net\/blog\/archives\/285"},"modified":"2013-08-26T18:13:16","modified_gmt":"2013-08-26T23:13:16","slug":"vista-symlinks-revisited","status":"publish","type":"post","link":"https:\/\/neosmart.net\/blog\/vista-symlinks-revisited\/","title":{"rendered":"Vista Symlinks Revisited&hellip;"},"content":{"rendered":"<p>It&#8217;s not often that something we classify as a &ldquo;really good&rdquo; feature turns out to be a bit of a sham, but unfortunately, that&#8217;s the case with <a href=\"https:\/\/neosmart.net\/blog\/symlinks-on-vista\/\" rel=\"follow\">Vista&#8217;s symlinks<\/a>. Just a couple of days ago, symlinks were our &ldquo;big Vista feature of the week,&rdquo; but now, we&#8217;re not so sure. <\/p>\n<p>First, a correction. Symlinks haven&#8217;t <em>really<\/em> been added to Windows Vista. Sure, you can use the <a href=\"https:\/\/neosmart.net\/blog\/symlinks-on-vista\/\" rel=\"follow\">mklink command<\/a> to get Vista to intercept calls made to certain paths and have them silently and invisibly replaced with whatever real paths you previously specified, just like Symlinks are supposed to be &ndash; but that&#8217;s about it. Vista&#8217;s symlinks aren&rsquo;t much&nbsp;better than junctions in 2k\/XP that don&rsquo;t take up extra hard drive space, and indeed are quite a bit less compatible. <\/p>\n<p><!--more--><\/p>\n<p>It seems that the only calls to the symlink API Windows Vista occur during the creation of such files or when accessing them from Windows Explorer. No problems there. But the problem is, nowhere in Vista does there exist code for <em>intercepting <\/em>these symlinks from foreign calls. They&#8217;re not a part of the (allegedly) revised NTFS filesystem, and as far as we can tell, they&#8217;re not well-incorporate into the kernel either. <\/p>\n<p>What this means is, you can&#8217;t access symlinks from another OS. To be fair, you probably didn&#8217;t expect to be able to dual-boot into XP and suddenly have access to the symlinks you created on the Vista partition earlier that day. But then again, you probably expected to be able to access these symlinks through a network share\/UNC path or as files on a webserver. But you can&#8217;t. <\/p>\n<p>If your buddy at work has the latest documents for the project you&#8217;re both co-working on in his shared documents folder symlink&#8217;d over to the actual path (so he doesn&#8217;t have to manually synchronize the directories nor remember to keep changing permissions on shares), you can&#8217;t get it from <em>your<\/em> XP workstation (and you can most certainly forget about your enterprise Linux install or grabbing shared &amp; symlink&#8217;d media directories from your Mac either). <\/p>\n<p>But it&rsquo;s not all bad. The parts of Vista&rsquo;s mklink command that <em>do<\/em> work are excellent, as we&rsquo;d expect them to be. One workaround for now is to create symlinks on Vista that point to XP\/2k3 folders on the same PC &ndash; for instance, linking the Mozilla user directory on Vista to a physical path on your XP partition. However, this doesn&rsquo;t help when UNC paths enter the discussion &#8211; there&rsquo;s simply no workaround for that. Clearly, Vista&rsquo;s symlink API isn&rsquo;t complete &ndash; hopefully this is something that can be patched via a hotfix and that we don&rsquo;t have to wait for Fiji to get something as simple as UNC support built in.<\/p>\n<p>In short, Vista&#8217;s symlinks don&#8217;t really exist. They pretend to be there for the user of the local machine (not to say that isn&rsquo;t useful, because it really is), and if another Vista PC out there somewhere supports the proprietary symlink code used, it&#8217;s capable of accessing it too; but no more than that. If you plan on using Vista&#8217;s symlink features, you better be damn-well certain that <em>all<\/em> of your machines are on Vista too &#8211; at all times. And if you&#8217;re in a corporate setting? Don&#8217;t even think about it.<\/p>\n<p><small>If you want more unix comparisons, see the excellent <a href=\"http:\/\/www.osnews.com\/story\/16524\" rel=\"follow\">comments on OSNews<\/a> for shell excerpts and more info.<\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s not often that something we classify as a &ldquo;really good&rdquo; feature turns out to be a bit of a sham, but unfortunately, that&#8217;s the case with Vista&#8217;s symlinks. Just a couple of days ago, symlinks were our &ldquo;big Vista &hellip; <a href=\"https:\/\/neosmart.net\/blog\/vista-symlinks-revisited\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[127,53],"class_list":["post-285","post","type-post","status-publish","format-standard","hentry","category-software","tag-symlinks","tag-vista"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4xDa-4B","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/comments?post=285"}],"version-history":[{"count":2,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/285\/revisions"}],"predecessor-version":[{"id":2167,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/285\/revisions\/2167"}],"wp:attachment":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/media?parent=285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/categories?post=285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/tags?post=285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}