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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WScript.Echo problem?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Hi everybody!

When I use : someVar = WScript.createObject("WScript.Shell")
it's OK,
but when I use: WScript.Echo , I get error saying that WScript is undefined!
Do I have to create it using createObject statment?

Thanks!

 
I'm not all too familiar with WSH, but you may have to use something like:

set someVar= (same above)
someVar.Echo "Something" jared@aauser.com
 
You should not have to do any tricks with WSH, just

WScript.Echo "something"

Try again - or maybe post a copy of the whole code...
Maybe you have some ancient version of WSH ??

Good luck..
Peter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top