PDA

View Full Version : BATCH: map network NET USE


vietboy505
03-01-2006, 03:29 PM
I wrote a batch script to mount the network automatic at startup. It doesn't allow to map as drive.
I used:

mount.bat

NET USE \\SERVER

Will output..
The command completed successfully.

Now I have a problem with that,
When I checked NET USE:

Disconnected \\SERVER\IPC$ Microsoft Windows Network
The command completed successfully.

It never connect at all, how can I make sure it's connect, and if it's disconnected.
Remap it.

oracleguy
03-01-2006, 09:09 PM
well when you use net use to map a drive you also have to specify the share and if you want, which drive letter to map it to.

e.g.
net use x: \\server\share