Krystian81
Programmer
when I try to run this function ( I`ve also tried to change it to Sub ) I get error
"in the sub procedure calls can not use parent objects"
Function map_drive(drive_letter, drive_to_map)
Dim objNetwork, strDrive
Set objNetwork = CreateObject("Wscript.Network")
strDrive = drive_to_map
objNetwork.MapNetworkDrive drive_letter, strDrive
End Function
"in the sub procedure calls can not use parent objects"
Function map_drive(drive_letter, drive_to_map)
Dim objNetwork, strDrive
Set objNetwork = CreateObject("Wscript.Network")
strDrive = drive_to_map
objNetwork.MapNetworkDrive drive_letter, strDrive
End Function