batch: map network NET USE

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
vietboy505
Forum Commoner
Posts: 53
Joined: Wed Feb 22, 2006 9:30 am

batch: map network NET USE

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
vietboy505
Forum Commoner
Posts: 53
Joined: Wed Feb 22, 2006 9:30 am

Post 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
Post Reply