如何在vc++中使用netstat命令创建程序

How to create program from netstat command in vc++

本文关键字:netstat 命令 创建 程序 vc++      更新时间:2023-10-16

嗨,我想在vc++中编写一个程序来给出netstat信息。例如MySQL端口的命令,以及IIS端口

netstat -aon | findstr80

使用这些命令,我应该如何为vc++编写程序?

可以使用系统功能:http://www.cplusplus.com/reference/cstdlib/system/