BOOL CreateProcess(
LPCTSTR lpApplicationName,
// pointer to name of executable module
LPTSTR lpCommandLine, // pointer to command line string
……
[/Quote]
不,我想用隐藏启动shell后,运行ping 127.0.0.1代码后,将返回的值存起来,例如显示在窗口中
看样子能运行shell,但是存返回值不太容易,看来得进程间通信了
BOOL CreateProcess(
LPCTSTR lpApplicationName,
// pointer to name of executable module
LPTSTR lpCommandLine, // pointer to command line string
LPSECURITY_ATTRIBUTE……
BOOL CreateProcess(
LPCTSTR lpApplicationName,
// pointer to name of executable module
LPTSTR lpCommandLine, // pointer to command line string
LPSECURITY_ATTRIBUTE……
[/Quote]
谢谢,你说的我明白了,换成exe文件也运行了,可是我想运行shell命令ping本机的ip要返回数据
该如何改啊