Page 1 of 1

batch: map network NET USE

Posted: Wed Mar 01, 2006 9:29 am
by vietboy505
I wrote a batch script to mount the network automatic at startup. It doesn't allow to map as drive.
I used:

mount.bat

Code: Select all

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.

Posted: Wed Mar 01, 2006 9:32 am
by feyd
if you can't or don't want to map it to a drive, there shouldn't be a reason to mount it.. Windows will handle that if they try to go there.

Posted: Wed Mar 01, 2006 11:24 am
by vietboy505
I don't want to map as the drive and still determine if the connection is still connect or not.

Just the \\server