Sign-up....

执行dos命令问题

在程序中调用system("dir") 函数,怎么才可以让执行这个函数的命令的时候不出现cmd的窗体

,正常是会闪一下就消失了.

[66 byte] By [msdn] at [2007-8-14 20:05:20]
# 1 Re: 执行dos命令问题

http://community.csdn.net/Expert/topic/3844/3844405.xml?temp=8.464992E-03

5420 at 2005-6-8 17:00:47 >
# 2 Re: 执行dos命令问题

getchar();

system("pause");

....

我试过了,都行

5420 at 2005-6-8 17:03:44 >
# 3 Re: 执行dos命令问题

用system()一定会闪啦

用CreateProcess试试看

nasi00 at 2005-6-8 17:03:56 >
# 4 Re: 执行dos命令问题

getchar();

system("pause");

....

这些不管用

hellDoor at 2005-6-8 18:13:53 >
# 5 Re: 执行dos命令问题

system()当然会闪了。。。

mostideal at 2005-6-8 18:56:31 >

C/C++

All Classified