How-To Stop Command-Prompt Window from appearing?

This is a discussion on How-To Stop Command-Prompt Window from appearing? within the C++ Programming forums, part of the General Programming Boards category; Hello I'm trying to write in some program launchers into 1 programed .exe. Here is my code; Code: #include <iostream> ...

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    12

    Question How-To Stop Command-Prompt Window from appearing?

    Hello

    I'm trying to write in some program launchers into 1 programed .exe.

    Here is my code;

    Code:
    #include <iostream>
    
    using namespace std;
    
    int main()
    {
    	system("explorer \\panarchy\\share");
    	system("\"\"%ProgramFiles%\\Symantec\\LiveUpdate\\LUALL.exe\"\"");
    	system("diskmgmt.msc");
    }
    Please tell me how I can stop the command-prompt window from appearing.

    Thanks in advance,

    Panarchy

    PS: If you could also tell me how to add an icon to the finished project with Code::Blocks, I'd really appreciate it! Thanks

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Try to post in ONLY ONE area at a time.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    12
    Sorry, was unsure of which section would be best.

    Feel free to delete whichever is in the wrong section, and in the meantime please try your utmost to solve my C++ question.

    Thanks in advance,

    Panarchy

    EDIT: Great, just noticed that you had replied on the other topic.
    Last edited by Panarchy; 04-21-2009 at 10:02 AM. Reason: EDIT: Great, just noticed that you had replied on the other topic.

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Panarchy View Post
    Sorry, was unsure of which section would be best.

    Feel free to delete whichever is in the wrong section, and in the meantime please try your utmost to solve my C++ question.

    Thanks in advance,

    Panarchy
    Which is why I replied in the OTHER section with a reply to try to solve your problem.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Then I'll close this one.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. creating a child window
    By rakan in forum Windows Programming
    Replies: 2
    Last Post: 01-23-2007, 02:22 PM
  2. Adding buttons, edit boxes, etc to the window
    By rainmanddw in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2006, 03:07 PM
  3. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  4. dont want to use all params
    By stallion in forum Windows Programming
    Replies: 2
    Last Post: 02-18-2003, 07:10 AM
  5. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM

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