{"id":243,"date":"2006-01-17T00:04:04","date_gmt":"2006-01-17T07:04:04","guid":{"rendered":"http:\/\/jameskovacs.com\/2006\/01\/17\/Junction+Your+Way+To+The+Infinite+Cdrive"},"modified":"2006-01-17T00:04:04","modified_gmt":"2006-01-17T07:04:04","slug":"junction-your-way-to-the-infinite-cdrive","status":"publish","type":"post","link":"https:\/\/www.jameskovacs.com\/index.php\/2006\/01\/17\/junction-your-way-to-the-infinite-cdrive\/","title":{"rendered":"Junction Your Way to the Infinite C-drive"},"content":{"rendered":"<p><P>We&#8217;ve all had it happen. You&#8217;re running out of space on your precious C-drive and you start to madly uninstall unneeded programs. Sometimes you even resort to uninstalling programs from C:\\Program Files just so you can move them to D:\\Program Files. (<A href=\"http:\/\/www.sellsbrothers.com\/\">Chris Sells<\/A> mentioned <A href=\"http:\/\/www.sellsbrothers.com\/news\/showTopic.aspx?ixTopic=1942\">doing this dance recently<\/A>, which is why I&#8217;m writing this blog entry.) STOP THE INSANITY. You can save a ton of time by following these simple steps:<\/P><br \/>\n<OL><br \/>\n<LI>Download <A href=\"http:\/\/www.sysinternals.com\/Utilities\/Junction.html\">Junction<\/A> from <A href=\"http:\/\/www.sysinternals.com\/\">sysinternals.com<\/A>.<br \/>\n<LI>On another hard drive, create a D:\\Program Files or whatever you want to call the directory. The name doesn&#8217;t matter.<br \/>\n<LI>Move C:\\Program Files\\AppThatIWantToMove to D:\\Program Files\\AppThatIWantToMove. Note that once you&#8217;ve done this, the program will no longer work properly (yet) because everything in your registry that makes file extensions, COM objects, etc. work&nbsp;is still pointing to the application at C:\\Program Files\\AppThatIWantToMove.<br \/>\n<LI>Run the following command:&nbsp;junction &#8220;C:\\Program Files\\AppThatIWantToMove&#8221; &#8220;D:\\Program Files\\AppThatIWantToMove&#8221;<\/LI><br \/>\n<LI>Launch explorer and go to &#8220;C:\\Program Files\\AppThatIWantToMove&#8221;. The app appears to be on your C-drive again, but its actually stored on D-drive.&nbsp;Your application works just like it did before, but you&#8217;ve freed up space on your C-drive and you didn&#8217;t have to go through the uninstall\/reinstall dance.<\/LI><\/OL><br \/>\n<DIV>What you&#8217;ve actually done is to create a junction that says, &#8220;Windows, when someone asks for something stored in C:\\Program Files\\AppThatIWantToMove, everything is actually stored over there on D:\\Program Files\\AppThatIWantToMove.) This&nbsp;is completely different from the shortcuts that you&#8217;re used to. If you create a shortcut on your Desktop to a directory such as&nbsp;C:\\Foo\\Bar, when you navigate&nbsp;the&nbsp;shortcut and then&nbsp;up one folder, you end up at C:\\Foo, not back on your Desktop. If you were to create a junction, navigate the juction, and then&nbsp;up one folder, you would end up back on your Desktop. It&#8217;s as if the folder actually does exist on your Desktop, but is stored elsewhere.<\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>I use the <A href=\"2005\/06\/20\/Junctions-Feel-The-Symlink-Love\">same technique<\/A> for keeping my Virtual PC images on an external hard drive, but making them appear to be in My Documents. (I find this handy because when I need to take a VPC on the road without my external HD, I simply delete the junction, copy the contents of the folder locally, and I&#8217;m in business.)<\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>Note that the only thing special about Junction is that it allows you to create junctions (aka symlinks). This feature is built into Windows\/NTFS, but just not exposed to the end-user. You can even delete the sysinternals.com Junction application after you&#8217;ve moved your application.<\/DIV><br \/>\n<DIV>&nbsp;<\/DIV><br \/>\n<DIV>If you ever feel the burning need to move the application back to your C-drive, you can just reverse the process:<\/DIV><br \/>\n<OL><br \/>\n<LI>Delete the junction using: junction -d &#8220;C:\\Program Files\\AppThatIWantToMove&#8221;<\/LI><br \/>\n<LI>Move D:\\Program Files\\AppThatIWantToMove back to C:\\Program Files\\AppThatIWantToMove.<br \/>\n<LI>Everything is back to the way it was, including your C-Drive being overly full again.<\/LI><\/OL><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve all had it happen. You&#8217;re running out of space on your precious C-drive and you start to madly uninstall unneeded programs. Sometimes you even resort to uninstalling programs from C:\\Program Files just so you can move them to D:\\Program Files. (Chris Sells mentioned doing this dance recently, which is why I&#8217;m writing this blog [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-243","post","type-post","status-publish","format-standard","hentry","category-miscellaneous"],"_links":{"self":[{"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/posts\/243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/comments?post=243"}],"version-history":[{"count":0,"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/posts\/243\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/media?parent=243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/categories?post=243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jameskovacs.com\/index.php\/wp-json\/wp\/v2\/tags?post=243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}