//① 启动一个ipconfig窗口,带参数all
ShellExecute(NULL, NULL, "cmd", "/k ipconfig/all", NULL, SW_SHOWNORMAL);
//② 启动一个ping窗口,带对方IP地址参数
ShellExecute(NULL, NULL, "cmd", "/k ping 192.168.0.100 -t", NULL, SW_SHOWNORMAL);
//① 启动一个ipconfig窗口,带参数all
ShellExecute(NULL, NULL, "cmd", "/k ipconfig/all", NULL, SW_SHOWNORMAL);
//② 启动一个ping窗口,带对方IP地址参数
ShellExecute(NULL, NULL, "cmd", "/k ping 192.168.0.100 -t", NULL, SW_SHOWNORMAL);