Thread: running programs as "hidden" or in the "background"

  1. #1
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001

    running programs as "hidden" or in the "background"

    For simple programs that run in the command prompt, is there an easy way of getting it to run "out of the way"? I am trying to make a program that checks if my server for neverwinter nights is running, and if it is not, then start it up.

    The problem is I'm not the only one that uses the computer -- my brother and sister do as well. If I keep it in "windowed" mode they could close it on purpose, accident, just something like that. If it was running in the background it'd be much nicer.

    Is this an easy thing to do or not?

  2. #2
    Registered User Diamonds's Avatar
    Join Date
    Oct 2002
    if you have a program that runs in the 'promt' then it's a consol application, and by defination it must have the consol up to run.

    If you use a Win API program you can throw it to the task bar, don't know how to do that, but you'll want to ask how to do it in the 'windows programming' section of the forum.

  3. #3
    Join Date
    Nov 2002
    Maybe you can fork the process onto a new thread then let main exit and close the command windows when you are given your prompt back ( but i'm not really sure how that new windows command thingie works ).

    I've don't this with java programs.

  4. #4

  5. #5
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    >> I've don't this with java programs.

    Java? And you still havn't been shot by one of my lurking soldiers? Hrm...gotta get onto that one!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Recommend upgrade path for C programs
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-22-2007, 07:32 AM
  2. Geophysics student needs help in running a C++ program
    By Unregistered in forum C++ Programming
    Replies: 6
    Last Post: 01-29-2002, 02:15 AM
  3. Running external programs
    By speedy in forum C++ Programming
    Replies: 3
    Last Post: 10-26-2001, 05:50 PM
  4. Running programs as Services
    By Unregistered in forum Windows Programming
    Replies: 2
    Last Post: 10-20-2001, 04:17 AM