Link to home
Start Free TrialLog in
Avatar of detox1978
detox1978Flag for United Kingdom of Great Britain and Northern Ireland

asked on

enable VBScript on Windows 7 (64 bit)

Hi All,

For some reason my laptop wont allow me to run .VBS files.

It returns the following error

can't find script engine "VBScript" for script
"C:\Users\laptop\Desktop\test.vbs"


inside test.vbs all i have is a hello world snippet;

msgbox("Hello world")



Any idea how i fix this?
SOLUTION
Avatar of FDomingos88
FDomingos88
Flag of Portugal 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
Alternatively, you can press Winkey + R to open the run window
SOLUTION
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 detox1978

ASKER

Tried that, it still errors.
SOLUTION
Avatar of Bill Prew
Bill Prew

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
run both of them and they return the same values you listed


Avatar of Bill Prew
Bill Prew

A couple of other items:

Are you running 32 or 64 bit?

When you did the regsvr32 command, were you in Administrator mode?

~bp
it's 64bit and used to have McAfee installed (not sure if that might have loocked it down, but i've uninstalled it)


Tried it as Administrator without any luck
SOLUTION
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
Gave it a try, but it didn't work.  It looks like it run ok as this was logged;

"System32 - Successfully repaired vbscript.dll"
"System32 - Successfully repaired jscript.dll"
"System32 - Successfully repaired msxml3.dll"
"System32 - Successfully repaired msxml6.dll"
"System32 - Successfully repaired scrrun.dll"
"SysWow64 - Successfully repaired vbscript.dll"
"SysWow64 - Successfully repaired jscript.dll"
"SysWow64 - Successfully repaired msxml3.dll"
"SysWow64 - Successfully repaired msxml6.dll"
"SysWow64 - Successfully repaired scrrun.dll"



Could there be a software restriction in place?
SOLUTION
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
Also, you might have to restart after these fixes.

~bp
run the vbs regkey, which run ok.  but i still cant run vbscripts
ASKER CERTIFIED SOLUTION
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
Glad you got it resolved!

~bp
thanks for the pointers, it became clear something was stopping it as everything seemed ok.