{"id":59,"date":"2009-12-03T10:09:05","date_gmt":"2009-12-03T17:09:05","guid":{"rendered":"http:\/\/journeyman.ivystreetinc.com\/?p=59"},"modified":"2009-12-03T10:09:17","modified_gmt":"2009-12-03T17:09:17","slug":"folder-or-path-as-a-drive-letter-on-windows-xp","status":"publish","type":"post","link":"http:\/\/10kdev.net\/?p=59","title":{"rendered":"Folder or Path as a Drive Letter on Windows XP"},"content":{"rendered":"<p>I was creating a setup of PortableApps on my XP machine with some of the great stuff you can port around in that framework: Open Office, VLC etc. without installing them into the OS.  I didn&#8217;t have a USB drive with me, and thought hey, maybe I can just make a virtual drive from a folder and load the apps into that (I&#8217;ve done this using Cygwin in my development environment).<\/p>\n<p>So I started digging through the commands and found SUBST.  It associates a path with a drive letter.<\/p>\n<p>Just open up a command line and type in the following syntax:<\/p>\n<p><code><br \/>subst (virtual drive letter): (actual path)<br \/><\/code><\/p>\n<p>So, for instance, say I want to mount a folder &#8220;\\\\atlas\\shrugged&#8221; from a network drive as drive letter &#8220;q:&#8221; on my local &#8211;<br \/><code><br \/>subst q: \\\\atlas\\shrugged<br \/><\/code><\/p>\n<p>And a local folder as &#8220;x:&#8221; &#8211;<br \/><code><br \/>subst x: C:\\journeyman<br \/><\/code><\/p>\n<p>Disconnecting the virtual drives is simple enough, use the &#8220;\/d&#8221; flag for delete:<br \/><code><br \/>subst x: \/d<br \/><\/code><\/p>\n<p>I haven&#8217;t found a ton of use cases for this yet, but it&#8217;s a nice little command line tool for any automated tasks you might think of someday.<\/p>\n<p>Funny enough, when I was going through the PortableApps setup it now allows you to install to a folder &#8212; as I remember the older versions needed a drive &#8212; chuckle.  \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was creating a setup of PortableApps on my XP machine with some of the great stuff you can port around in that framework: Open Office, VLC etc. without installing them into the OS. I didn&#8217;t have a USB drive with me, and thought hey, maybe I can just make a virtual drive from a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/59"}],"collection":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=59"}],"version-history":[{"count":1,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":60,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/59\/revisions\/60"}],"wp:attachment":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}