{"id":5453,"date":"2004-07-31T21:58:00","date_gmt":"2004-07-31T21:58:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2004\/07\/31\/using-pushd-to-get-to-network-paths\/"},"modified":"2004-07-31T21:58:00","modified_gmt":"2004-07-31T21:58:00","slug":"using-pushd-to-get-to-network-paths","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/using-pushd-to-get-to-network-paths\/","title":{"rendered":"Using pushd to get to network paths"},"content":{"rendered":"<p><P>A short while ago I saw someone at the office use pushd to cd into a network path.&nbsp; I&#8217;ve used pushd\/popd on Windows for some time, but I never thought to try it on a network path or actually read the help for it.&nbsp; Pushd will actually map the path to a drive letter automatically and then take you there.&nbsp; The latter part is expected, but mapping the drive is really cool.&nbsp; Maybe it should be obvious (how else would the&nbsp;command line do it?), but it wasn&#8217;t to me.&nbsp; It&#8217;s a lot more convenient than &#8220;net use&#8220; or anything else that I know of.<\/P><PRE>C:\\&gt;pushd \/?\nStores the current directory for use by the POPD command, then\nchanges to the specified directory.\nPUSHD [path | ..]\n  path        Specifies the directory to make the current directory.\nIf Command Extensions are enabled the PUSHD command accepts\nnetwork paths in addition to the normal drive letter and path.\nIf a network path is specified, PUSHD will create a temporary\ndrive letter that points to that specified network resource and\nthen change the current drive and directory, using the newly\ndefined drive letter.  Temporary drive letters are allocated from\nZ: on down, using the first unused drive letter found.\n<\/PRE><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A short while ago I saw someone at the office use pushd to cd into a network path.&nbsp; I&#8217;ve used pushd\/popd on Windows for some time, but I never thought to try it on a network path or actually read the help for it.&nbsp; Pushd will actually map the path to a drive letter automatically [&hellip;]<\/p>\n","protected":false},"author":94,"featured_media":10268,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[5],"class_list":["post-5453","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-random"],"acf":[],"blog_post_summary":"<p>A short while ago I saw someone at the office use pushd to cd into a network path.&nbsp; I&#8217;ve used pushd\/popd on Windows for some time, but I never thought to try it on a network path or actually read the help for it.&nbsp; Pushd will actually map the path to a drive letter automatically [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/5453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/users\/94"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/comments?post=5453"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/5453\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media\/10268"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media?parent=5453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=5453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=5453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}