Thread: An exe calling another exe

  1. #1
    Registered User
    Join Date
    Oct 2003

    An exe calling another exe

    How do you have an executable call another .exe file (such as having a dos window open another dos window with different content) without using Windows programming. I want to avoid proprietary programs that will run on multiple platforms (Windows, Linux, etc). My desire right now (I am a beginner in programming C++) is to make a chat based game where the information for the player's character is displayed seperately in another window.

  2. #2
    Registered User major_small's Avatar
    Join Date
    May 2003
    I'm assuming your working from a console?

    try this:
    system("start \"[title]\" [exe]");
    replace [title] with the title of the console window, and [exe] with the name of the executable (you don't have to include the .exe) you want to run in it... i think...
    Last edited by major_small; 10-17-2003 at 12:43 PM.
    Join is in our Unofficial Cprog IRC channel
    Channel: #Tech

    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  3. #3
    Registered User
    Join Date
    Jan 2002

  4. #4
    Registered User
    Join Date
    Oct 2003
    Thanks guys, you answered my question better than the teachers at ITT did.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Stack issues when calling a COM library
    By notnot in forum C Programming
    Replies: 3
    Last Post: 06-01-2009, 02:12 AM
  2. how to monitor exe and dll interactions?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 10-26-2007, 04:22 AM
  3. calling exe from in a Dll? Help the poor VB guy!
    By nmessick in forum C++ Programming
    Replies: 5
    Last Post: 09-16-2002, 02:01 PM
  4. Close another exe from another exe??
    By Tony in forum Windows Programming
    Replies: 1
    Last Post: 06-12-2002, 07:19 AM
  5. adding bytes to EXE to call another EXE
    By lliero in forum C Programming
    Replies: 2
    Last Post: 03-30-2002, 07:23 AM