Board index » Visual Studio » MapNetwork drive
|
jcrichar33
|
|
jcrichar33
|
MapNetwork drive
Visual Studio324
Hello I'm currently mapping a network in my script, but what if that drive is not onlone for some reason. How can I tell, so I can take the appropriate action? Will that method return something I can branch off of? Thanks - |
| urkec
Registered User |
Fri Mar 30 09:10:01 CDT 2007
Re:MapNetwork drive
You can check the Err object:
On Error Resume Next Set WshNetwork = WScript.CreateObject("WScript.Network") WshNetwork.MapNetworkDrive "G:", "\\Test\Test" If Err.number <>0 Then WScript.Echo Err.Description End If -- urkec "Jason" wrote: QuoteHello |
