Hiding the Console

This is a discussion on Hiding the Console within the C Programming forums, part of the General Programming Boards category; what im after is how to make the console window not show but do a command. because im using system("command") ...

  1. #1
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214

    Hiding the Console

    what im after is how to make the console window not show but do a command.
    because im using
    system("command")
    in a win32 api app but it shows the console box when doing the command.
    is there any way to make it not show?
    thanks

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >is there any way to make it not show?
    Click on the minimize button.
    My best code is written with the delete key.

  3. #3
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214
    lol
    nah it just makes people think whats that and there not to sure wat it is and i get alot of questions
    just wont to make it so it doesnt show up and does the command

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >nah it just makes people think whats that and there not to sure wat it is and i get alot of questions
    You shouldn't be running stuff on their computers then.

    BTW, you can get your answer in the Windows Programming forum. C doesn't know anything about hiding a window.
    My best code is written with the delete key.

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,676
    What is "command"?
    Perhaps there is a better way of performing "command" without using system()...

    If you're running on an NT based system, you can use "start /wait /min <command>".

    Otherwise, you'll have to use something other than system() like ShellExecute() or CreateProcess().

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Hiding The Console...
    By David Somekh in forum C++ Programming
    Replies: 2
    Last Post: 06-24-2007, 01:32 PM
  2. Hiding the Console Cursor
    By XSquared in forum C Programming
    Replies: 1
    Last Post: 08-29-2003, 12:52 AM
  3. Hiding the console - extended
    By Korhedron in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2003, 02:59 PM
  4. Hiding the console.
    By knave in forum C++ Programming
    Replies: 3
    Last Post: 07-10-2003, 12:19 AM
  5. Hiding the console window?
    By XenoCodex Admin in forum C++ Programming
    Replies: 6
    Last Post: 06-23-2002, 04:08 PM

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