Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wscript.echo not popping up 2

Status
Not open for further replies.

RITec

MIS
May 15, 2002
98
US
Hi Everyone,

Hoping this is something simple
This started about a week ago.

I have scripts that I run, but for some reason when I run scripts on my machine they only run in command window and do not popup.

example:
Code:
wscript.echo "Hello"

will bring up the command window run say hello then close. no popup saying "Hello"

Works on all other machines just not mine.

any Idea what is going on?

Thank you
RITec
 
Seems that the default program for VBS file is cscript.exe and you want wscript.exe.
In a console windows, execute this:
wscript //h:wscript

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thank you very much

That did the job

Ritec

p.s. star for you
 
Hello RITec,

If you want the "popup window" jump out regardless of cscript or wscript, you can always script it with msgbox.
msgbox "Hello",,"Windows Script Host"

regards - tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top