-2

I am working on windows server 2003 and when i run my script , it access data from remote
network drive x: . so windows cannot make connection after 10 minutes , when i log off my computer. so how to map my drive , and auto disconnect should get off. i have tried many solutions like net config server /autodisconnect:-1 net use \mydrivename\mas90\home but still it is not able to map my drive

only when i right click on shortcut of mas90 on desktop, network drive get mapped.
so how should i map my drive by using batch file 
  • You can map a network drive though a batch file ran as a login script NET USE X: \\server\path\to\folder where X is the drive you want to it mapped to. – tombull89 Oct 7 '13 at 14:27
1

My problem is solved by right click on my computer and using option map my drive

0

One easy way is Net use z: \servername\sharename [/PERSISTENT:{YES | NO}]

The Z: is simply my example and you can use any unused drive letter. The /PERSISTENT:Y would make this connection remain after a reboot.

  • thanks it solved my problem by directly mapping my drive by right click on my computer , and it mapped even after logout – dipanshu Nov 21 '13 at 10:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.