#include "stdafx.h" #include <stdio.h> #include <string.h> #include <stdlib.h> int main(int argc, char *argv[]) { char command[50]; int port; printf("enter port "); scanf("%d", &port); sprintf_s(command, sizeof command, "netstat -ano | findstr %d", port ); system(command); system("pause"); return(0); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)