Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Disconnect  network  drive  

 Content of Disconnect network drive.vbs
MD5 Hash: 8152010E9C81DE18212C812665534D73

Call DisconnectND("m:",True,True)

' -----------------------------------
Private Function DisconnectND(sDrive, bForce, bPermanent)

On Error Resume Next

Dim oWNet : Set oWNet = WScript.CreateObject("WScript.Network")

oWNet.RemoveNetworkDrive sDrive, bForce, bPermanent

If Err.Number <> 0 then
msgbox "Error: " & Err.Number & VbCrLf & Err.Description
Else
msgbox "Disconnect network drive " & sDrive & VbCrLf & "Status = OK"
End if

End Function

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a