用c语言如何提取数据?
我前面已经发过类似的帖了,因为还是想自己完成,碰到问题再来这里请教。
现在又碰到问题了。
c语言调用dos
hailongchang(我把QQ丢了.....) ( )提供:
#include<stdlib.h>
#include<stdio.h>
int main()
{
system("dir c:\\");
system("pause");
return 0;
}
如果按照我的想法,直接提取运行得出来的数据,比如 xxxxxxxxxxx bytes free ,现在用c可以实现吗?如何实现?
[349 byte] By [
qdp2005] at [2008-1-9]
看看管道方面的api,如
BOOL CreatePipe(
PHANDLE hReadPipe, // 指向读端句柄的指针
PHANDLE hWritePipe, // 指向写端句柄的指针
LPSECURITY_ATTRIBUTES lpPipeAttributes, // 指向安全属性结构的指针
DWORD nSize // 管道的容量
);