Run dos program invisibly?

This is a discussion on Run dos program invisibly? within the Windows Programming forums, part of the Platform Specific Boards category; Is there a way to execute a program through dos without making it visible? I run an exe in dos ...

  1. #1
    Wanabe Laser Engineer chico1st's Avatar
    Join Date
    Jul 2007
    Posts
    168

    Run dos program invisibly?

    Is there a way to execute a program through dos without making it visible?

    I run an exe in dos which opens another program with a window. I would like to be able to keep the second window hidden, is that possible?

    Thanks

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,674
    Assuming you're not talking about an actual "DOS" application - the correct terminology is "console" application. Whether it's a console or windows (gui) application, you can start them hidden using the CreateProcess Win32 API. You should find plenty of examples searching these boards.

    gg

  3. #3
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to time how long a program takes to run?
    By advancedk in forum C Programming
    Replies: 2
    Last Post: 08-18-2008, 07:50 PM
  2. Replies: 4
    Last Post: 07-24-2008, 09:02 AM
  3. program won't run properly, help needed asap
    By jlmac2001 in forum C Programming
    Replies: 2
    Last Post: 11-16-2002, 08:52 AM
  4. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 11:39 AM
  5. initialising a DOS program from a C enviroment
    By Robert_Ingleby in forum C Programming
    Replies: 5
    Last Post: 03-07-2002, 12:53 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21