{"id":167,"date":"2012-03-11T13:41:26","date_gmt":"2012-03-11T13:41:26","guid":{"rendered":"http:\/\/scunster.co.uk\/?p=167"},"modified":"2012-12-01T15:44:47","modified_gmt":"2012-12-01T15:44:47","slug":"automatically-add-create-network-drive-share","status":"publish","type":"post","link":"https:\/\/scunster.co.uk\/?p=167","title":{"rendered":"Automatically add \/ create network drive share"},"content":{"rendered":"<p>To have your PC automatically connect to a network share and map that drive as a local drive drive letter in My Computer, do the following:<!--more--><\/p>\n<p>Open notepad and create a file called networkshare.bat<\/p>\n<p>Now add the following two lines:<\/p>\n<p>net use <strong>Z:<\/strong> SERVER_NAME FOLDER <strong>PASSWORD<\/strong> \/user:&#8221;<strong>USERNAME<\/strong>&#8221;<br \/>\nexit<\/p>\n<p>Save and close, add the batch file as a shortcut to your windows startup folder<br \/>\n<em>(you can add as many net use lines as you wish, as long as you have drive letters spare)<\/em><br \/>\n<strong><br \/>\n<\/strong><strong>Z:<\/strong> The drive letter that the share appears in on My Computer of the Local PC<\/p>\n<p>SERVER_NAME is the name of the pc to connect to<\/p>\n<p>FOLDER is the name of the folder that is being shared<\/p>\n<p><strong>PASSWORD<\/strong> is the password<\/p>\n<p><strong>USERNAME<\/strong> is the username<\/p>\n<p>It is assumed that on the PC \/ Server that has the folder being shared, you have created a user account with a username and password already<\/p>\n<p>It is also assumed that the folder that is being shared as a network mapped drive has its share name created with no spaces, ie. an underscore being used instead of spaces in the share name<\/p>\n<p>It is also assumed that the folder being shared has had the user that is being granted access to the share added under sharing \/ security and has had the read \/ write access enabled \/ disabled as appropriate<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To have your PC automatically connect to a network share and map that drive as a local drive drive letter in My Computer, do the following:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[169,168],"tags":[43,124,122,123],"class_list":["post-167","post","type-post","status-publish","format-standard","hentry","category-win-7-10-tips-tricks","category-xp-tips-tricks","tag-drive","tag-lan","tag-network","tag-share"],"_links":{"self":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=167"}],"version-history":[{"count":4,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":527,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/167\/revisions\/527"}],"wp:attachment":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}