Click to See Complete Forum and Search --> : Stdout printing problems from JScript or VBScript


vlasov pavel
April 30th, 2003, 03:36 PM
When following code is executed run-time error occured: "The handle is invalid".

WScript.StdOut.Write("test")

Can anyone help me?

P.S. The same **** happens with StdErr.
P.P.S. Tested OSes are WinNT4 and WinXP-Prof
P.P.P.S. Languages tested are JScript and VBScript

Satishpp
April 30th, 2003, 05:05 PM
Run the script with the CScript.exe host executable file.

For more info

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthwrite.asp

Satish