Thread: System("");

  1. #1
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269

    System("");

    Uhhhh.......i read the FAQ and i tried the system(""); and the spawn whatever........and it just doesn't seem to open it. can you help me?
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  2. #2
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    can you be a tad more specific?
    Monday - what a way to spend a seventh of your life

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    system("")?????

    Your passing nothing to the command processor????

    What are you trying to do?

  4. #4
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    oh lol....i forgot something....
    im trying to open an .exe file

    ok thats what im trying to do
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  5. #5
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Code:
    #include<cstdlib>
    
    int main()
    {
    system("sol.exe");
    return 0;
    }

  6. #6
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    yeah except it doesn't do anything, do you have to add like c:\abala\adas\asad.exe???
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  7. #7
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Originally posted by bluehead
    yeah except it doesn't do anything, do you have to add like c:\abala\adas\asad.exe???
    Code:
    #include<cstdlib>
    
    int main()
    {
    system("c:\\abala\\adas\\asad.exe");
    return 0;
    }
    Dont forget the extra escape char

  8. #8
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    lol, that was funny <dont ask>
    i try
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  9. #9
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    DARNIT:

    CODE______________________________
    #include <conio.h>
    #include <stdlib.h>

    int main()
    {
    system("C:\\BORLANDC\\Bin\\FF7QUIZ.EXE");
    getch();
    return 0;
    }
    END______________________________





    OUTPUT___________________________


    END______________________________

    nothings happening!!!!!!I am getting mad!!! PLEASE HELP ME
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  10. #10
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    <RANT>
    Oh god!!! Why do people insist on putting that crap getch thing on the bottom so they can double click????? If you want a console program.......run from the command line!!!!! The person who came up with the pause trick should be shot!!!!!!
    </RANT>

    Sorry about that....try running from the command line

  11. #11
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    i guess thats why my post about using getch was deleted?
    Monday - what a way to spend a seventh of your life

  12. #12
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    HEY, that getch crap works like hell with me, so dont be saying crap about it, ok? now just answer my question!
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  13. #13
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    lol sorry bout that
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  14. #14
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    I guess the FAQ's aren't specific enough, please help me
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  15. #15
    Registered User rmullen3's Avatar
    Join Date
    Nov 2001
    Posts
    330
    ROFL

    uh... but... System isn't the best way to open programs, I think it can only run console/DOS programs? ^^

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with system(""); command!
    By guitarist809 in forum C++ Programming
    Replies: 3
    Last Post: 05-21-2006, 11:39 AM
  2. using string with system("") help
    By aznboi in forum C++ Programming
    Replies: 2
    Last Post: 10-12-2005, 10:45 PM
  3. system("")
    By skyruler54 in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 10-18-2002, 09:21 AM