/*
* This program is used to find the CMD Commands using C Programing
* Here we used system function.
*syntax for system Function is
* int system("const char command");
* For this we need to include Windows.h file.
*/
#include<stdio.h>
#include<windows.h>
int main()
{
system("ipconfig>ipconfig.txt");
system("ping 192.168.0.153>Ping.txt");
//system("notepad.exe");
return 0;
}
No comments:
Post a Comment