|
| |||||||||
| Tags: activex, component, create, object |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| ActiveX component can't create object: 'Scripting.FileSystemObject'
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, |
|
#2
| |||
| |||
| Re: ActiveX component can't create object: 'Scripting.FileSystemObject'
What happens if you create a new user as member of the Administrators group? -- Regards, Dave Patrick ....Please no email replies - reply in newsgroup. Microsoft Certified Professional Microsoft MVP [Windows] http://www.microsoft.com/protect "Fred Jacobowitz" wrote: |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, | | |
|
#3
| |||
| |||
| Re: ActiveX component can't create object: 'Scripting.FileSystemObject'
It works when I create a new user. Did I do something to the registry? "Dave Patrick" <DSPatrick@nospam.gmail.com> wrote in message news:u1WYb4a5FHA.3484@TK2MSFTNGP10.phx.gbl... > What happens if you create a new user as member of the Administrators > group? > > > -- > > Regards, > > Dave Patrick ....Please no email replies - reply in newsgroup. > Microsoft Certified Professional > Microsoft MVP [Windows] > http://www.microsoft.com/protect > > "Fred Jacobowitz" wrote: > |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, > | > | > > |
|
#4
| |||
| |||
| Re: ActiveX component can't create object: 'Scripting.FileSystemObject'
Seems the profile is somehow corrupt. -- Regards, Dave Patrick ....Please no email replies - reply in newsgroup. Microsoft Certified Professional Microsoft MVP [Windows] http://www.microsoft.com/protect "Fred Jacobowitz" wrote: | It works when I create a new user. Did I do something to the registry? |
|
#5
| |||
| |||
| Re: ActiveX component can't create object: 'Scripting.FileSystemObject'
How does the profile relate to the registry? "Dave Patrick" <DSPatrick@nospam.gmail.com> wrote in message news:eTwP2uz5FHA.1000@tk2msftngp13.phx.gbl... > Seems the profile is somehow corrupt. > > -- > > Regards, > > Dave Patrick ....Please no email replies - reply in newsgroup. > Microsoft Certified Professional > Microsoft MVP [Windows] > http://www.microsoft.com/protect > > "Fred Jacobowitz" wrote: > | It works when I create a new user. Did I do something to the registry? > > |
|
#6
| |||
| |||
| Re: ActiveX component can't create object: 'Scripting.FileSystemObject'
Almost everything in HKCU is loaded from ntuser.dat which is loaded when you logon. ntuser.dat is located in the root of the user's profile; %USERPROFILE%\ -- Regards, Dave Patrick ....Please no email replies - reply in newsgroup. Microsoft Certified Professional Microsoft MVP [Windows] http://www.microsoft.com/protect "Fred Jacobowitz" wrote: | How does the profile relate to the registry? |
|
#7
| |||
| |||
| Re: ActiveX component can't create object: 'Scripting.FileSystemObject'
Yes, I understand. Do you know which files (dll's) may contain the calls to the FileSystemObject. Perhaps I can dope out my authority to use those. "Dave Patrick" <DSPatrick@nospam.gmail.com> wrote in message news:eHna8E95FHA.3312@TK2MSFTNGP15.phx.gbl... > Almost everything in HKCU is loaded from ntuser.dat which is loaded when > you > logon. > > ntuser.dat is located in the root of the user's profile; > %USERPROFILE%\ > > > -- > > Regards, > > Dave Patrick ....Please no email replies - reply in newsgroup. > Microsoft Certified Professional > Microsoft MVP [Windows] > http://www.microsoft.com/protect > > "Fred Jacobowitz" wrote: > | How does the profile relate to the registry? > > |
|
#8
| |||
| |||
| Re: ActiveX component can't create object: 'Scripting.FileSystemObject'
Should be Scrrun.dll -- Regards, Dave Patrick ....Please no email replies - reply in newsgroup. Microsoft Certified Professional Microsoft MVP [Windows] http://www.microsoft.com/protect "Fred Jacobowitz" wrote: | Yes, I understand. Do you know which files (dll's) may contain the calls to | the FileSystemObject. Perhaps I can dope out my authority to use those. |
|
#9
| |||
| |||
| Re: ActiveX component can't create object: 'Scripting.FileSystemObject'
Thank you for the link http://www.microsoft.com/downloads/d...Lang=enWindows Script 5.6 for Windows XP and Windows 2000.That did the treat. I had to install it as the Administrator.Thank you,Fred Jacobowitz "Dave Patrick" <DSPatrick@nospam.gmail.com> wrote inmessage news:uiRZc3W6FHA.2176@TK2MSFTNGP14.phx.gbl...> Should be Scrrun.dll>> -->> Regards,>> Dave Patrick ....Please no email replies - reply in newsgroup.> Microsoft Certified Professional> Microsoft MVP [Windows]> http://www.microsoft.com/protect>> "Fred Jacobowitz" wrote:> | Yes, I understand. Do you know which files (dll's) may contain thecalls> to> | the FileSystemObject. Perhaps I can dope out my authority to use those.>> |
|
#10
| |||
| |||
| Re: ActiveX component can't create object: 'Scripting.FileSystemObject'
You're welcome. -- Regards, Dave Patrick ....Please no email replies - reply in newsgroup. Microsoft Certified Professional Microsoft MVP [Windows] http://www.microsoft.com/protect "Fred Jacobowitz" wrote: | Thank you for the link | http://www.microsoft.com/downloads/d...Lang=enWindows Script 5.6 for Windows XP and Windows 2000.That did the treat. I had to install it as the Administrator.Thank you,Fred Jacobowitz |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "ActiveX component can't create object: 'Scripting.FileSystemObject'" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ActiveX Component Can't Create Object Scripting.FileSystemObject | Robla68 | Windows Server Help | 3 | 19-10-2011 11:30 PM |
| ActiveX component can't create object error | Abe Simpson | Windows x64 Edition | 8 | 15-06-2011 12:32 AM |
| Error 429 : ActiveX component can't create object | Brad | Vista Help | 12 | 30-01-2011 03:04 AM |
| Error=429 : ActiveX component can't create object | RobGG | Vista Help | 15 | 30-01-2011 02:30 AM |
| Error=429: ActiveX component can't create object | vibhub | Vista Help | 2 | 23-12-2008 07:41 PM |