ozmoeugene
IS-IT--Management
I have created a WSH script file, just for testing, which consist of the following code:
MapDrive ("R:","\\wfr-cwc6ygp3yf4\charles")
Sub MapDrive(sLetter, sUNC)
set oNet = WScript.CreateObject("WScript.NetWork")
oNet.MapNetworkDrive("R:", "\\wfr-cwc6ygp3yf4\charles")
End Sub
As you can see I call the mapDrive Sub routine. I keep getting the error "Cannot use parentheses when calling a sub".
Now I am not a programming novice, but I can't figure why I keep geting this error.
If anyone knows the reason I amd getting this error, please help!!!
Thanks ahead of time.
MapDrive ("R:","\\wfr-cwc6ygp3yf4\charles")
Sub MapDrive(sLetter, sUNC)
set oNet = WScript.CreateObject("WScript.NetWork")
oNet.MapNetworkDrive("R:", "\\wfr-cwc6ygp3yf4\charles")
End Sub
As you can see I call the mapDrive Sub routine. I keep getting the error "Cannot use parentheses when calling a sub".
Now I am not a programming novice, but I can't figure why I keep geting this error.
If anyone knows the reason I amd getting this error, please help!!!
Thanks ahead of time.