I have this script - C:\tools\filesystemobjects.vbs
option explicit
dim objFSO, colDrives
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set colDrives = objFSO.Drives
For Each objDrive in colDrives
Wscript.Echo "Drive letter: " & objDrive.DriveLetter
Next
Results in
C:\tools\filesystemobjects.vbs(3, 1) Microsoft VBScript runtime error:
ActiveX component can't create object: 'Scripting.FileSystemObject'
What did I do. I get this error; "ActiveX component can't create object:
'Scripting.FileSystemObject' " when ever I am logged in as User fred (a
member of the Administrators group). Yet, when I log in as Administrator
the script works. It always worked in the past. What did I do? I am
running WINDOWS XP , Service Pack 2
Thank you,
Very desperate - Fred Jacobowitz,
Bookmarks