{"id":19,"date":"2007-06-20T08:52:00","date_gmt":"2007-06-20T08:52:00","guid":{"rendered":"http:\/\/localhost:10265\/?p=19"},"modified":"2007-06-20T08:52:00","modified_gmt":"2007-06-20T08:52:00","slug":"associating-a-path-with-a-drive-letter","status":"publish","type":"post","link":"https:\/\/mehdi.biz\/blog\/2007\/06\/20\/associating-a-path-with-a-drive-letter\/","title":{"rendered":"Associating a path with a drive letter!"},"content":{"rendered":"<!-- google_ad_section_start --><p>It&#8217;s so amazing that most of those developers out there have got no idea how to create a virtual path on their machines. If you are in the same bot, read on.<\/p>\n<p>There are some circumstances that you need to access a given long path (e.g., &#8220;C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLData&#8221;) frequently and therefore you&#8217;ve to browse to the directory over and over again during the daytime work. You could easily associate such a long path with a drive letter using the subst in the command line of the console window. By typing the &#8220;subst \/?&#8221; on the command line, you&#8217;ll get the syntax of the command:<br \/>\n<code><br \/>\nAssociates a path with a drive letter.<br \/>\nSUBST [drive1: [drive2:]path]<br \/>\nSUBST drive1: \/D<\/p>\n<p>drive1:         Specifies a virtual drive to which you want to assign a path.<br \/>\n[drive2:]path   Specifies a physical drive and path you want to assign to a virtual drive.<br \/>\n\/D              Deletes a substituted (virtual) drive.<\/p>\n<p>Type SUBST with no parameters to display a list of current virtual drives.<br \/>\n<\/code><\/p>\n<p>Therefore, the following line assigns the drive letter &#8220;d&#8221; to above mentioned path:<\/p>\n<p><em>subst d: &#8220;C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLData&#8221;<\/em><\/p>\n<p>to remove the virtual path, try the following command:<\/p>\n<p><em>subst d: \/D<\/em><\/p>\n<p>If you do not like the console window (for whatever reason), you may try the <a href=\"http:\/\/www.ntwind.com\/software\/utilities\/visual-subst.html\">Visual Subst<\/a> GUI utility.<\/p>\n<p>That&#8217;s all for now, folks!<\/p>\n<!-- google_ad_section_end -->","protected":false},"excerpt":{"rendered":"<p>It&#8217;s so amazing that most of those developers out there have got no idea how to create a virtual path on their machines. If you are in the same bot, read on.<\/p>\n<p>There are some circumstances that you need to access a given long path (e.g., &#8220;C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLData&#8221;) frequently and therefore you&#8217;ve to [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/mehdi.biz\/blog\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mehdi.biz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mehdi.biz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mehdi.biz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mehdi.biz\/blog\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":0,"href":"https:\/\/mehdi.biz\/blog\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/mehdi.biz\/blog\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mehdi.biz\/blog\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mehdi.biz\/blog\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}