How to create MAP Drive by batch file

后端 未结 2 347
青春惊慌失措
青春惊慌失措 2021-01-14 10:38

often i have to create map drive where i specify machine and user credential. now i like to know can we write a batch file which will create map drive and where i provide al

2条回答
  •  礼貌的吻别
    2021-01-14 11:07

    I presume your testfolder is shared then do like this:

    net use z: \\192.168.7.15\testfolder password /user:domain\username /savecred /p:yes
    

提交回复
热议问题