Chat on IRC |
Executing Batch Files
Posted by Sky36 [send private reply] at August 06, 2001, 06:08:02 PM
Hey is there a way well actually im sure there is a way but I dont know about it. To execute a program from a c++ or c program. So basically im asking how to do it. Im trying to make a very very simple IDE for TASM. Also it would be very helpfull if you could tell me how to send parambeters to the program well thats about it. Dang why did I name it executing Batch Files oh well stupid me.
Posted by gian [send private reply] at August 06, 2001, 06:11:35 PM
Well, there's a function called "ShellExecute" it comes out of..... I don't remember, but I'm sure a search will turn up something useful
Posted by Sky36 [send private reply] at August 06, 2001, 06:19:57 PM
Yeah I've heard of it I tried using it once when I first started with C++ and it kind of alluded me or something.
Posted by gian [send private reply] at August 06, 2001, 06:15:33 PM
Here, wait a sec and I'll find out a bit more
Posted by Sky36 [send private reply] at August 06, 2001, 06:23:57 PM
I found it in the Help Files for MVC++ its Kinda Windows Oriented it seems. I was going to write it as a Dos project actually now that I think about it its not going to be much of an IDE just makes it so I can compile with out typing everything myself. Oh well anywho I did look on Google I think oh well I might as well browse it some more maybe Ill find something thanks.
Posted by Psion [send private reply] at August 06, 2001, 06:38:35 PM
system()
Posted by Sky36 [send private reply] at August 06, 2001, 06:53:28 PM
Cool after a bit of tweaking it works thanks.
Posted by shroomrefic29 [send private reply] at August 08, 2001, 02:17:15 AM
Thats easy:
Heres a sample program: #include <stdlib.h> int main { system("dir");// Use the system() func in stdlib to execute shell calls. system("pause"); return 0; }
Register as a new user | |||||||||||