Saturday, November 5, 2011

Execute DOS commands in C language


This is the sample code for how to execute DOS commands in C language


#include<conio.h>
#include<stdio.h>
#include<process.h>
 void main()
 {
system("dir"); // use your desired command instead of "dir" command
getch();
 }

0 comments:

Post a Comment

You are most welcome for making comments here. I will consider your view and will reply you soon.