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

WScript.Shell creates error

322 views
Skip to first unread message

Daniel Fernandes

unread,
Jan 25, 2002, 6:09:32 PM1/25/02
to
Hi,

I have a Windows XP box with all updates applied to it and I noticed that I
can't run a simple line like that one :
WshShell = WScript.CreateObject("WScript.Shell")

The first error I get is :
The procedure entry point DoOpenPipeStream could not be located in the
dynamic link library ScrRun.dll

And the second one is :
Error : Could not create object named "WScript.Shell"
Code : 8007007F
Source : WScript.CreateObject

I read some threads about this problem and no one seems to know why is this
happening.

Thank you for helping.
Daniel.


Mike Whalen (MS)

unread,
Jan 25, 2002, 7:15:59 PM1/25/02
to

It's very likely that some other application you have installed put an older
version of scrrun.dll on your system, causing this error. The version in
%windir%\system32 should still be the correct one (it's a protected file, so
it shouldn't have been overwritten), so you can probably just re-register it
and all should be well - type "regsvr32 scrrun.dll" from any command prompt.
The version number on that file should be 5.6.0.6626. Let me know if it
isn't and we'll figure out the rest.

Mike Whalen
Windows Script Dev

"Daniel Fernandes" <danielfer...@hotmail.com> wrote in message
news:ebHzHVfpBHA.2328@tkmsftngp04...

Alex Angelopoulos

unread,
Jan 25, 2002, 7:17:12 PM1/25/02
to
By the way, that line won't work as is even under VBScript - since you
are referencing an object, you need to use a "set" statement; it would
be

set WshShell = WScript.CreateObject("WScript.Shell")

Without the "set" you are going to get an error anyway.

The DoOpenPipeStream error sounds like you may have a bad install of
WSH 5.6. Have you recently installed software that would play with
Internet Explorer or WSH? There was a stream of problems with this
early last year, but it seemed to usually involve beta IE6 and Beta
WSH 5.6 users. Unfortunately I never saw a general fix that was
supposed to work for everyone.

"Daniel Fernandes" <danielfer...@hotmail.com> wrote in message
news:ebHzHVfpBHA.2328@tkmsftngp04...

Alex Angelopoulos

unread,
Jan 25, 2002, 7:23:19 PM1/25/02
to
Ah, bingo!

Sounds like more FAQ fodder.

"Mike Whalen (MS)" <mwh...@microsoft.com> wrote in message
news:uDesi6fpBHA.1604@tkmsftngp04...

Daniel Fernandes

unread,
Jan 25, 2002, 7:34:01 PM1/25/02
to
Mike,

For some reason I had a file with version 5.1.* (I don't remember exactly
now).
I had two other copies of that dll in %windir%\lastgood\system32 and
%windir%\lastgood\system32\dllcache and they had the correct version number.
I copied one of them to %windir%\lastgood\system32 and it is fine now.

I don't know why the file got overwritten by an older version though.

Thank you for your help.

Daniel.


"Mike Whalen (MS)" <mwh...@microsoft.com> wrote in message
news:uDesi6fpBHA.1604@tkmsftngp04...
>

Daniel Fernandes

unread,
Jan 25, 2002, 7:35:49 PM1/25/02
to
Alex,

It seems it was indeed an error related to a wrong version of that dll (cf:
my post).
It is fixed now.

And yes I did a mistake when I put my line of code :)

Thank you,
Daniel.

0 new messages