[wpkg-users] [WPKGWrapper...]

Tomasz Chmielewski mangoo at wpkg.org
Sat Mar 24 18:39:54 CET 2007


Marco Gaiarin schrieb:

> For that i say 'seems that my wrapper does not connect STDIO', because
> cscript-executed script produce no output at all.

Well, you could try to understand cryptic examples on MSDN:

http://msdn2.microsoft.com/en-us/library/cbxxzwb5.aspx
http://msdn2.microsoft.com/en-us/library/ye284tb8.aspx


A short form here:


var WshShell = new ActiveXObject("WScript.Shell");

var oExec    = WshShell.Exec("cscript wpkg.js /help");

output = ""

while (!oExec.StdOut.AtEndOfStream)
         {
	output += oExec.StdOut.Read(1)
	}

WScript.Echo(output)



-- 
Tomasz Chmielewski
http://wpkg.org






_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users



More information about the wpkg-users mailing list