skip to main
|
skip to sidebar
My Programming Tips
Friday, February 15, 2008
JScript: collecting the output after run command
var shell = WScript.CreateObject("WScript.Shell");
var exec = shell.Exec("ipconfig /all");
WScript.StdOut.Write(exec.StdOut.ReadAll());
From
http://snippets.dzone.com/posts/show/627
Newer Posts
Home
Subscribe to:
Posts (Atom)
Blog Archive
►
2012
(7)
►
January
(7)
►
2011
(4)
►
December
(4)
▼
2008
(3)
►
June
(1)
►
April
(1)
▼
February
(1)
JScript: collecting the output after run command
About Me
Ken Zhang
View my complete profile