Vbscripts fails ... all my vbs files can't run

Posted on 2009-02-10
Last Modified: 2012-05-06
I have lots of vbs-files on my pc, and I can't suddenly not execute them.
I don't know what happened, but suddenly they failed.
See example code.
See uploaded file for error.
Anybody that can help me out here.

I have  tried to install scripten.exe 5.7, but its tells med setup error, and something about too little menory......

Set fs=CreateObject("Scripting.FileSystemObject")

Set a = fs.CreateTextFile("com1:",True)

a.write "aaaaa"


Open in new window

Question by:conceptdata
    LVL 12

    Accepted Solution

    Hi Sorry, are you able to translate the error message for me.
    It looks like its saying filesystemobject ActiveX component is not registered or something like that.

    Try this at the run command on start menue, or in a command window/.

      regsvr32 scrrun.dll
    Then try the code again

    LVL 8

    Expert Comment

    Also try: regsvr32 wshom.ocx

    Author Closing Comment

    With the
    -- regsvr32 scrrun.dll --
    it now runs again, but now I get a "File could not be found"-error in line 2

    But my other vbscripts works fine now.

    THANKS Krys K
    LVL 12

    Expert Comment

    Glad that worked for you and thanks for the grade and points.
    Your other error is simply a case of the file you are looking for is not there or it's misspelt.

    With regards

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Hello again, all.  For those of you that have been following along, you'll know that this is my third article on this topic (though it is not Part III).  This article is sort of remedial, and probably the topic with which I should have started the s…
    When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now