We help IT Professionals succeed at work.

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

conceptdata
conceptdata asked
on
Medium Priority
239 Views
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"
a.Close

Open in new window

error.jpg
Comment
Watch Question

Commented:
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

Regards
Krystian

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Also try: regsvr32 wshom.ocx

Author

Commented:
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

Commented:
Hi
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
Krystian
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.