Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

There is no script engine for file extension ".vbs". ???

893 views
Skip to first unread message

C.J. Sloan

unread,
Nov 2, 2000, 10:26:59 PM11/2/00
to

When I try to execute any .vbs script with cscript or wscript I get the
following error:


Microsoft (R) Windows Script Host Version 5.1 for Windows
Copyright (C) Microsoft Corporation 1996-1999. All rights reserved.

Input Error: There is no script engine for file extension ".vbs".

What is going on here? .js files work without a problem.. any help is
appreciated.
-C.J. Sloan


Michael Harris

unread,
Nov 2, 2000, 10:58:05 PM11/2/00
to

Try a reinstall of WSH - it could be that something you installed (and maybe uninstalled) may have
trashed up the HKCR\.vbs key or one or more of the registry keys it points to.

You should be able to follow HKCR\.vbs to HKCR\VBSFile which has several subkeys.

Of those, HKEY_CLASSES_ROOT\VBSFile\ScriptEngine has a value of "VBScript" which is a pointer to
HKEY_CLASSES_ROOT\VBScript which has CLSID and OLEScript subkeys.

The CLSID key points to
HKEY_CLASSES_ROOT\CLSID\{B54F3741-5B07-11cf-A4B0-00AA004A55E8}\InprocServer32 whose value is the
path to vbscript.dll.

As you can tell, if anything in the chain of registry keys gets broken...

--
Michael Harris
Microsoft.MVP.Scripting
--
"C.J. Sloan" <c...@sbco.com> wrote in message news:OBkLJYU...@cppssbbsa02.microsoft.com...

Message has been deleted

C.J. Sloan

unread,
Nov 2, 2000, 11:32:17 PM11/2/00
to

Thanks a lot Michael,
I tried reinstalling the WSH but it didnt fix the problem so I ran through
the registry and everything was there and working except the .vbs key in
HKCR so I made that and everything is groovy again. The only thing that
makes me wonder is why doesnt the WSH install check to make sure the key is
there? seems like it would be something to check.. anyways I'm up and
running again, thanks a lot,
C.J. Sloan
"Michael Harris" <Please...@To.NewsGroup> wrote in message
news:OEL0PpURAHA.72@cppssbbsa03...
0 new messages