Try popen?
=io.popen('dir'):read('*a')
2008/10/27 Asko Kauppi <askok@dnainternet.net>
This is not an issue with Lua.
Maybe you should ask this at www.stackoverflow.com. It seems to
have a lot of people knowledgeable on Microsoft products.
http://stackoverflow.com/questions/43116/how-can-i-run-an-external-program-from-c-and-parse-its-output
http://msdn.microsoft.com/en-us/library/96ayss4b.aspx
-asko
Andy.Tao kirjoitti 27.10.2008 kello 9:32:
thanks Asko Kauppi and same to others.
I have tried Ask Kauppi's suggestion, not resolve the problem, and I
had tried others[ as follow code]. here are the source code in my
application:
/*
* 读取控制台输出管道内容线程
*/
....
--
Regards,
Linker M Lin
linker.m.lin@gmail.com