Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   How to execute dos commands in C++?? (http://www.go4expert.com/forums/execute-dos-commands-cpp-t16309/)

officespace 23Feb2009 21:31

How to execute dos commands in C++??
 
guys i love programming in C++...i am a b.tech student...while doin a project i came across an idea of implementing dos in C++..i did search the net for it but couldnt get any solution...any experts/programmers who hav the solution plzz help me!!...thanx in advance!!

xpi0t0s 23Feb2009 22:36

Re: How to execute dos commands in C++??
 
I'm not clear what you mean - do you want to call DOS (by which I presume you mean MS-DOS) commands from a C++ program, or are you talking about reimplementing the Command Prompt in C++?

officespace 24Feb2009 11:52

Re: How to execute dos commands in C++??
 
yeah exactly...call a dos command from C++ program(like "dir" to giv the directories)....use the dir command in C++ to obtain the directory as we get in cmd!!..its bit crazy:D....still any chance??...thanx for the response!

xpi0t0s 24Feb2009 13:58

Re: How to execute dos commands in C++??
 
Try system()


All times are GMT +5.5. The time now is 09:53.