Link to home
Start Free TrialLog in
Avatar of conceptdata
conceptdataFlag for Denmark

asked on

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

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
ASKER CERTIFIED SOLUTION
Avatar of Krys_K
Krys_K
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JustWorking
JustWorking

Also try: regsvr32 wshom.ocx
Avatar of conceptdata

ASKER

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