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
Windows Script Dev
"Daniel Fernandes" <danielfer...@hotmail.com> wrote in message
news:ebHzHVfpBHA.2328@tkmsftngp04...
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...
Sounds like more FAQ fodder.
"Mike Whalen (MS)" <mwh...@microsoft.com> wrote in message
news:uDesi6fpBHA.1604@tkmsftngp04...
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...
>
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.