hiiiiiiiii,tell me how to run dos commands in c-program
how to run dos commands in c-program
Page 1 of 14 Replies - 6693 Views - Last Post: 27 March 2008 - 05:09 AM
Replies To: how to run dos commands in c-program
#2
Re: how to run dos commands in c-program
Posted 25 March 2008 - 10:20 AM
You can use the system() function to run commands you would normally run via the command line interface. Of course, depending on your operating system, the goal may better be accomplished via a fork() if you need to grab the output (or any errors).
#3
Re: how to run dos commands in c-program
Posted 25 March 2008 - 10:29 AM
and if you are running windows, don't forget to include windows.h
#4
Re: how to run dos commands in c-program
Posted 25 March 2008 - 10:53 AM
The system command is located in the stdlib.h library.
#5
Re: how to run dos commands in c-program
Posted 27 March 2008 - 05:09 AM
Touche... My bad
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|