Batch file to map or disconnect drives on a network

J

John Doue

On a home network mixing NIC cards and Wifi, is it possible to use a
batch file to:

1/ connect and map two network drives named XXX and YYY as drives M and
N respectively with a single command without them being displayed in an
Explorer window.
2/ disconnect those two drives with a single command.

Or is there a third party program to do that?

Regards
 
D

Dave Patrick

Use the MapNetworkDrive method of VBScript. Get the documentation here.

http://www.microsoft.com/downloads/...48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en



--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| On a home network mixing NIC cards and Wifi, is it possible to use a
| batch file to:
|
| 1/ connect and map two network drives named XXX and YYY as drives M and
| N respectively with a single command without them being displayed in an
| Explorer window.
| 2/ disconnect those two drives with a single command.
|
| Or is there a third party program to do that?
|
| Regards
| --
| John Doue
 
T

Torgeir Bakken \(MVP\)

John said:
On a home network mixing NIC cards and Wifi, is it possible to use a
batch file to:

1/ connect and map two network drives named XXX and YYY as drives M and
N respectively with a single command without them being displayed in an
Explorer window.
2/ disconnect those two drives with a single command.
Hi

For the hide drives in Explorer part:

Hide Drives in My Computer
http://www.winguides.com/registry/display.php/148/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top