with the code here:
i'm able to map a drive with vba. is there an equivalent code with EB
"WshNetwork is not a record type" is the error i get when i try to compile
thanks
rem
i'm able to map a drive with vba. is there an equivalent code with EB
Code:
Set WshNetwork = CreateObject("WScript.Network")
On Error Resume Next
[blue]WshNetwork.RemoveNetworkDrive "L:"[/blue]
[red]'"WshNetwork is not a record type" is the error i get when i try to compile[/red]
On Error GoTo 0
WshNetwork.MapNetworkDrive "L:", "\\mydrive\share" 'HardDrive"
Set WshNetwork = Nothing
"WshNetwork is not a record type" is the error i get when i try to compile
thanks
rem