> Oops,
>
> The file is named lwsi.vbs (list web server info.vbs)
ok,
thanks for clearing up.
Your code is really ok.
I've ran it on my own system, and it just works (on XP with Sp2) and
I named the file test.vbs
It might be a version problem but that sounds very rare. What's your OS?
Do you run specific anti-virus tools, that disable or cripple script?
IN addition, the error code you show us, is 800401e$.
I don't swear, but I'm sure this code is not shown by VBScript normally.
It looks like not CScript.exe or WScript.exe is running your vbs file but
something else that has replaced it.
Can you show us through regedit what is listed below
HKEY_CLASSES_ROOT\VBSFile\Shell\Open
and
HKEY_CLASSES_ROOT\VBSFile\Shell\Open2
rich - 29 Dec 2005 15:16 GMT
Hello,
I am running XP/SP2. Other scripts are working. When I run "cscript" from
a command line, it reports WSH v5.6. We run Symantec anti-virus Corp. Ed.
v8.0.x. Confirm that the error code I get is: 800401E4. There is no "$".
Thanks,
Rich
> > Oops,
> >
[quoted text clipped - 18 lines]
> and
> HKEY_CLASSES_ROOT\VBSFile\Shell\Open2
rich - 29 Dec 2005 20:12 GMT
> > Oops,
> >
[quoted text clipped - 18 lines]
> and
> HKEY_CLASSES_ROOT\VBSFile\Shell\Open2
Sorry, forgot to include the registry info:
..\Shell\Command\Open: %systemroot%\system32\wscript.exe %1 %
..\shell\Command\Open2: %systemroot%\system32\cscript.exe %1 %
Egbert Nierop (MVP for IIS) - 30 Dec 2005 08:30 GMT
>> IN addition, the error code you show us, is 800401e$.
>> I don't swear, but I'm sure this code is not shown by VBScript normally.
[quoted text clipped - 10 lines]
>
> ..\shell\Command\Open2: %systemroot%\system32\cscript.exe %1 %
ok, all looks ok.
Just try just once, to disable your virustools and try your code again.