Dennis
Sat Apr 30 17:19:38 CDT 2005
Hi,
On Sat, 30 Apr 2005 07:14:15 -0600, "gg" <gg@nomail.nil> wrote:
>msgbox does nothing with script as host especially when the batch mode (//B
>switch) is used
Unfortunately its not my computer (I'm diagnosing via email) however I have
eliminated the batch possibility by trying "CSCRIPT //I".
>wscript.echo does not work in vbscript when in activeX script for example
> ' start of the code at next line, no other usual code calling sub
> sub mysciprt()
> ........
> wsciprt.echo "something" ' wscript will not be recognized but should
>give you error message
> ...
> end Sub
Good point but thats not it, the code works perfectly on every other box
its ever run on. The code is ".VBS".
>
>However msgbox in activeX script do work. see the help file msscript.hlp
>that you can get from downloading the scriptcontrol activeX or ole from
>Microsoft. I think it is named as sc10en.exe
If I run the VBS via CSCRIPT/WSCRIPT.EXE can this be the problem?
>As for winXP SP2 with the latest critical security fix, I don't have any
>problem with vbscipt itself when executing through wscript or cscript. I do
>have antivirus software running too.
I did notice another post which sounds like it might be the same thing and
that was describing it spreading (but that could as easily be hotfixes as viruses).
>You may wish to check for default setting of your script host
Microsoft don't document it but from my testing "//S" doesn't appear the
change the batch/interactive mode.
That is interactive appears to ALWAYS be the default.
Thanks,
Dennis
>
>"Dennis Bareis" <dbareis@KillSpam.labyrinth.net.au> wrote in message
>news:0ma6715n05imq6a4u3rm7r17e6d15c0obo@4ax.com...
>> Hi,
>>
>> Has anyone seen any problems where some scripts do not generate (or stop
>> generating part way through) output.
>>
>> A "Msgbox" will for example not display and "wscript.echo", won't output
>> to the console (CSCRIPT) or display a popup (WSCRIPT).
>>
>> This is on WINXP SP2.
>>
>> Thanks,
>> Dennis
Dennis Bareis [MVP] (dennis@KillSpam.dennisbareis.id.au)
http://dennisbareis.id.au/index.htm
Freeware Windows Installer creation tool (+ "ORCA automation"):
http://dennisbareis.id.au/makemsi.htm