"rich" <rich DeleteThis @discussions.microsoft.com> wrote in message
news:244426F5-2109-4317-B70B-F640B0DB0080@microsoft.com...
> 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
>> Stay informed about: Help!! Invalid Syntax in VBS script