I have a bunch of .vbs script files from Billsway and Doug Knox which I use
on occasion and I have just discovered that almost all of them don't work
anymore. When I try to run one now I get one of two error messages:

Script: C:\Windows\Desktop\Shutdown Timer.vbs
Line: 7
Char: 1
Error: ActiveX component cannot create object "WScriptShell"
Code: 800A01AD
Source: Microsoft VBScript runtime error

or

Script: C:\Windows\Desktop\DUN MENU.VBS
Line: 13
Char: 10
Error: Could not create object named "WScript.Shell"
Code: 80040154
Source: WScript CreateObject

The one file I have used most often (random password generator from
Billsway) works fine, but the others do not. I have downloaded fresh copies
and the results are the same. Updated NAV and Ad-aware scans show nothing.
All the other programs on my computer are running fine, including those
which require Visual Basic Runtime files. No other apparent problems. I
occasionally write little .vbs scripts for reminders and these work fine as
well. I have done some searching in the KB and haven't really found anything
that pertains specifically to my problem and what I have found is pretty
much beyond me. I have discovered that the error "80040154" apparently
refers to "class not registered" and I have found that a newer version of
WindowsScriptingHost 5.6 (published 06/09/03) is available at
http://www.microsoft.com/downloads/details.aspx?FamilyId=0A8A18F6-249C-4A72-
BFCF-FC6AF26DC390&displaylang=en

I was thinking of reinstalling the version of WindowsScriptingHost 5.6 that
I have installed now (downloaded and installed 08/02) or installing the
newer version. Before I tried anything though, I thought I'd see if anyone
had any suggestions or comments as I don't really have a clue.

Thanks.

Winme
IE 5.5 (all available updates applied)
WindowsScriptingHost 5.6 (downloaded and installed 08/02)
Visual Basic Runtime 6.0sp5
Windows Installer 2.0
MDAC 2.5

Re: .vbs script file problem by bill

bill
Wed Jul 09 12:43:53 CDT 2003

I don't monitor this newsgroup, but Noel Paton forwarded your post to
me since it concerns my scripts.

The problem line in each script that is failing is going to look
something like this:

Set ws = CreateObject("Wscript.Shell")

Your other scripts are still working because they are not creating
this object. You might be able to fix this problem by running these 2
commands (run from a command prompt):

regsvr32 scrrun.dll
regsvr32 wshom.ocx

Personally, I recommend you just upgrade to the new scripting engine
since it has some new methods not supported by your version, and you
will start to run into those and not be able to run those newer
scripts. That will almost certainly fix the problem.

Bill James
Microsoft MVP-DTS

"JBravo" <Warm_Toast@warmtoast.com> wrote in message news:<Of4KXpiRDHA.2460@TK2MSFTNGP10.phx.gbl>...
> I have a bunch of .vbs script files from Billsway and Doug Knox which I use
> on occasion and I have just discovered that almost all of them don't work
> anymore. When I try to run one now I get one of two error messages:
>
> Script: C:\Windows\Desktop\Shutdown Timer.vbs
> Line: 7
> Char: 1
> Error: ActiveX component cannot create object "WScriptShell"
> Code: 800A01AD
> Source: Microsoft VBScript runtime error
>
> or
>
> Script: C:\Windows\Desktop\DUN MENU.VBS
> Line: 13
> Char: 10
> Error: Could not create object named "WScript.Shell"
> Code: 80040154
> Source: WScript CreateObject
>
> The one file I have used most often (random password generator from
> Billsway) works fine, but the others do not. I have downloaded fresh copies
> and the results are the same. Updated NAV and Ad-aware scans show nothing.
> All the other programs on my computer are running fine, including those
> which require Visual Basic Runtime files. No other apparent problems. I
> occasionally write little .vbs scripts for reminders and these work fine as
> well. I have done some searching in the KB and haven't really found anything
> that pertains specifically to my problem and what I have found is pretty
> much beyond me. I have discovered that the error "80040154" apparently
> refers to "class not registered" and I have found that a newer version of
> WindowsScriptingHost 5.6 (published 06/09/03) is available at
> http://www.microsoft.com/downloads/details.aspx?FamilyId=0A8A18F6-249C-4A72-
> BFCF-FC6AF26DC390&displaylang=en
>
> I was thinking of reinstalling the version of WindowsScriptingHost 5.6 that
> I have installed now (downloaded and installed 08/02) or installing the
> newer version. Before I tried anything though, I thought I'd see if anyone
> had any suggestions or comments as I don't really have a clue.
>
> Thanks.
>
> Winme
> IE 5.5 (all available updates applied)
> WindowsScriptingHost 5.6 (downloaded and installed 08/02)
> Visual Basic Runtime 6.0sp5
> Windows Installer 2.0
> MDAC 2.5

Re: .vbs script file problem by Koldbear

Koldbear
Thu Jul 10 09:32:33 CDT 2003

Glad to help

"JBravo" <Warm_Toast@warmtoast.com> wrote in message =
news:elWVYiuRDHA.3144@tk2msftngp13.phx.gbl...
> I installed the newer version of WindowsScriptingHost 5.6 (published
> 06/09/03) and that did the trick. All my .vbs scripts are working now. =
Thank
> you Koldbear for replying, thank you Noel for taking the trouble to =
forward
> my post to Bill James and thank you Bill James for taking the time to =
pop in
> to this group and replying to my query. Appreciate it.
>=20
> "Bill James" <bill@billsway.com> wrote in message
> news:c5d9facf.0307090943.e5c0abe@posting.google.com...
> > I don't monitor this newsgroup, but Noel Paton forwarded your post =
to
> > me since it concerns my scripts.
> >
> > The problem line in each script that is failing is going to look
> > something like this:
> >
> > Set ws =3D CreateObject("Wscript.Shell")
> >
> > Your other scripts are still working because they are not creating
> > this object. You might be able to fix this problem by running these =
2
> > commands (run from a command prompt):
> >
> > regsvr32 scrrun.dll
> > regsvr32 wshom.ocx
> >
> > Personally, I recommend you just upgrade to the new scripting engine
> > since it has some new methods not supported by your version, and you
> > will start to run into those and not be able to run those newer
> > scripts. That will almost certainly fix the problem.
> >
> > Bill James
> > Microsoft MVP-DTS
> >
> > "JBravo" <Warm_Toast@warmtoast.com> wrote in message
> news:<Of4KXpiRDHA.2460@TK2MSFTNGP10.phx.gbl>...
> > > I have a bunch of .vbs script files from Billsway and Doug Knox =
which I
> use
> > > on occasion and I have just discovered that almost all of them =
don't
> work
> > > anymore. When I try to run one now I get one of two error =
messages:
> > >
> > > Script: C:\Windows\Desktop\Shutdown Timer.vbs
> > > Line: 7
> > > Char: 1
> > > Error: ActiveX component cannot create object "WScriptShell"
> > > Code: 800A01AD
> > > Source: Microsoft VBScript runtime error
> > >
> > > or
> > >
> > > Script: C:\Windows\Desktop\DUN MENU.VBS
> > > Line: 13
> > > Char: 10
> > > Error: Could not create object named "WScript.Shell"
> > > Code: 80040154
> > > Source: WScript CreateObject
> > >
> > > The one file I have used most often (random password generator =
from
> > > Billsway) works fine, but the others do not. I have downloaded =
fresh
> copies
> > > and the results are the same. Updated NAV and Ad-aware scans show
> nothing.
> > > All the other programs on my computer are running fine, including =
those
> > > which require Visual Basic Runtime files. No other apparent =
problems. I
> > > occasionally write little .vbs scripts for reminders and these =
work fine
> as
> > > well. I have done some searching in the KB and haven't really =
found
> anything
> > > that pertains specifically to my problem and what I have found is =
pretty
> > > much beyond me. I have discovered that the error "80040154" =
apparently
> > > refers to "class not registered" and I have found that a newer =
version
> of
> > > WindowsScriptingHost 5.6 (published 06/09/03) is available at
> > >
> =
http://www.microsoft.com/downloads/details.aspx?FamilyId=3D0A8A18F6-249C-=
4A72-
> > > BFCF-FC6AF26DC390&displaylang=3Den
> > >
> > > I was thinking of reinstalling the version of WindowsScriptingHost =
5.6
> that
> > > I have installed now (downloaded and installed 08/02) or =
installing the
> > > newer version. Before I tried anything though, I thought I'd see =
if
> anyone
> > > had any suggestions or comments as I don't really have a clue.
> > >
> > > Thanks.
> > >
> > > Winme
> > > IE 5.5 (all available updates applied)
> > > WindowsScriptingHost 5.6 (downloaded and installed 08/02)
> > > Visual Basic Runtime 6.0sp5
> > > Windows Installer 2.0
> > > MDAC 2.5
>=20
>=20
>=20
>

Re: .vbs script file problem by Noel

Noel
Thu Jul 10 18:56:41 CDT 2003

Glad Bill and KB were able to help out.

--
Noel Paton (MS-MVP 2002-2003, Win9x)

Nil Carborundum Illegitemi
Please read http://dts-l.org/goodpost.htm on how to post messages to NG's

"Koldbear" <rcmcgregor@REMOVE.earthlink.net> wrote in message
news:%23KvTcAvRDHA.632@TK2MSFTNGP12.phx.gbl...
Glad to help

"JBravo" <Warm_Toast@warmtoast.com> wrote in message
news:elWVYiuRDHA.3144@tk2msftngp13.phx.gbl...
> I installed the newer version of WindowsScriptingHost 5.6 (published
> 06/09/03) and that did the trick. All my .vbs scripts are working now.
Thank
> you Koldbear for replying, thank you Noel for taking the trouble to
forward
> my post to Bill James and thank you Bill James for taking the time to pop
in
> to this group and replying to my query. Appreciate it.
>
> "Bill James" <bill@billsway.com> wrote in message
> news:c5d9facf.0307090943.e5c0abe@posting.google.com...
> > I don't monitor this newsgroup, but Noel Paton forwarded your post to
> > me since it concerns my scripts.
> >
> > The problem line in each script that is failing is going to look
> > something like this:
> >
> > Set ws = CreateObject("Wscript.Shell")
> >
> > Your other scripts are still working because they are not creating
> > this object. You might be able to fix this problem by running these 2
> > commands (run from a command prompt):
> >
> > regsvr32 scrrun.dll
> > regsvr32 wshom.ocx
> >
> > Personally, I recommend you just upgrade to the new scripting engine
> > since it has some new methods not supported by your version, and you
> > will start to run into those and not be able to run those newer
> > scripts. That will almost certainly fix the problem.
> >
> > Bill James
> > Microsoft MVP-DTS
> >
> > "JBravo" <Warm_Toast@warmtoast.com> wrote in message
> news:<Of4KXpiRDHA.2460@TK2MSFTNGP10.phx.gbl>...
> > > I have a bunch of .vbs script files from Billsway and Doug Knox which
I
> use
> > > on occasion and I have just discovered that almost all of them don't
> work
> > > anymore. When I try to run one now I get one of two error messages:
> > >
> > > Script: C:\Windows\Desktop\Shutdown Timer.vbs
> > > Line: 7
> > > Char: 1
> > > Error: ActiveX component cannot create object "WScriptShell"
> > > Code: 800A01AD
> > > Source: Microsoft VBScript runtime error
> > >
> > > or
> > >
> > > Script: C:\Windows\Desktop\DUN MENU.VBS
> > > Line: 13
> > > Char: 10
> > > Error: Could not create object named "WScript.Shell"
> > > Code: 80040154
> > > Source: WScript CreateObject
> > >
> > > The one file I have used most often (random password generator from
> > > Billsway) works fine, but the others do not. I have downloaded fresh
> copies
> > > and the results are the same. Updated NAV and Ad-aware scans show
> nothing.
> > > All the other programs on my computer are running fine, including
those
> > > which require Visual Basic Runtime files. No other apparent problems.
I
> > > occasionally write little .vbs scripts for reminders and these work
fine
> as
> > > well. I have done some searching in the KB and haven't really found
> anything
> > > that pertains specifically to my problem and what I have found is
pretty
> > > much beyond me. I have discovered that the error "80040154" apparently
> > > refers to "class not registered" and I have found that a newer version
> of
> > > WindowsScriptingHost 5.6 (published 06/09/03) is available at
> > >
>
http://www.microsoft.com/downloads/details.aspx?FamilyId=0A8A18F6-249C-4A72-
> > > BFCF-FC6AF26DC390&displaylang=en
> > >
> > > I was thinking of reinstalling the version of WindowsScriptingHost 5.6
> that
> > > I have installed now (downloaded and installed 08/02) or installing
the
> > > newer version. Before I tried anything though, I thought I'd see if
> anyone
> > > had any suggestions or comments as I don't really have a clue.
> > >
> > > Thanks.
> > >
> > > Winme
> > > IE 5.5 (all available updates applied)
> > > WindowsScriptingHost 5.6 (downloaded and installed 08/02)
> > > Visual Basic Runtime 6.0sp5
> > > Windows Installer 2.0
> > > MDAC 2.5
>
>
>
>