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

Newbie to vbscript - invalid handle error 1

Status
Not open for further replies.

Transcend

Programmer
Sep 29, 2002
858
AU
Hi there,

I know it says i'm a programmer but this vbscript i'm doing is all new.

I'm getting an error on this line

WScript.StdOut.Write(strMesg)

the handle is invalid
error code 80070006

any ideas?

Transcend


 
The Windows Script Technologies 5.6 documentation also states:

The StdOut property returns an object representing the standard output stream. The StdIn, StdOut, and StdErr streams can be accessed while using CScript.exe only. Attempting to access these streams while using WScript.exe produces an error.

This makes sense, since these items are part of a command-prompt shell environment, not a Windows GUI shell environment.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top