#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    Canada
    Posts
    0
    Rep Power
    0

    running .exe within .exe


    is it possible to run an .exe file within a program in DevC++?

    I got 2 programs one dependant on the other and I just want to automate it so that running one program will run both.

    thanks

    Ram09
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,646
    Rep Power
    4248
    try this:
    system("c:\\path\\to\\second_program.exe");

    [edit] duh! used single backslashes instead of double backslashes [/edit]

IMN logo majestic logo threadwatch logo seochat tools logo