Results 1 to 10 of 10

Thread: ActiveX component can't create object: 'Scripting.FileSystemObject'

  1. #1
    Fred Jacobowitz Guest

    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. #2
    Dave Patrick Guest

    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. #3
    Fred Jacobowitz Guest

    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. #4
    Dave Patrick Guest

    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. #5
    Fred Jacobowitz Guest

    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. #6
    Dave Patrick Guest

    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. #7
    Fred Jacobowitz Guest

    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. #8
    Dave Patrick Guest

    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. #9
    Fred Jacobowitz Guest

    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. #10
    Dave Patrick Guest

    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



Similar Threads

  1. Replies: 3
    Last Post: 19-10-2011, 10:30 PM
  2. ActiveX component can't create object error
    By Abe Simpson in forum Windows x64 Edition
    Replies: 8
    Last Post: 14-06-2011, 11:32 PM
  3. Error 429 : ActiveX component can't create object
    By GunTher in forum Vista Help
    Replies: 8
    Last Post: 30-01-2011, 03:04 AM
  4. Error=429 : ActiveX component can't create object
    By SurnameS in forum Vista Help
    Replies: 5
    Last Post: 30-01-2011, 02:30 AM
  5. Error=429: ActiveX component can't create object
    By vibhub in forum Vista Help
    Replies: 2
    Last Post: 23-12-2008, 07:41 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,946,107.18194 seconds with 17 queries