Sign in to follow this  
Followers 0
TuMiM

Check network connections

2 posts in this topic

Is there a way to check current server connections that don't have drive letters? for example if you issued a net use command without a drive letter, is there a way to check if that connection is already there?

Share this post


Link to post
Share on other sites



Just guessing :D...

$sSharename = "nameofshare"
$iShareExists = FileOpen("\\.\" & $sSharename & "\",16)
if $iShareExists = 1 then
    MsgBox(0,"","Share's present")
    FileClose($iShareExists)
Else
    MsgBox(0,"","Share's not present")
endif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0