Hello all
I have a problem with a small VB script, which I want to use as login
script.
--------------------
Set oNet = CreateObject("Wscript.Network")
Set oFSO = CreateObject("Scripting.FileSystemObject")
oDrive = "O:"
If oFSO.DriveExists(oDrive) Then
oNet.RemoveNetworkDrive oDrive
End If
oNet.MapNetworkDrive oDrive, "\\server\share"
Set oNet = Nothing
Set oFSO = Nothing
Set oDrive = Nothing
--------------------
When I start the vbs I receive this error:
Line: 2
Char: 1
Error: ActiveX component can't create object: 'Scripting.FileSystemObject'
Code: 800A01AD
Source: Microsoft VBScript runtime error
Any ideas?
Thanks in advance
GoTTi