System thingys

This is a discussion on System thingys within the C Programming forums, part of the General Programming Boards category; so im new to this c programming thing as i have probably said before but i foung out about the ...

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    27

    System thingys

    so im new to this c programming thing as i have probably said before but i foung out about the line
    Code:
    system ("cls");

    which i found very helpful and have now found the line

    Code:
    system ("pause");
    so heres the question does any one know of any more of these "system" commands that can be useful

  2. #2
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    http://www.mashhoor.ws/bpc.html#six
    but otherwise, do a google search

  3. #3
    Registered User
    Join Date
    Oct 2004
    Posts
    27
    http://www.mashhoor.ws/bpc.html#six
    but otherwise, do a google search

    it tried a google search and got a big fat simple zero (im starting to hate searches) so i tried to see if and you guys knew and more helpful ones

    although its nice to know the pros and cons

    thanks

  4. #4
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    Alright, basically system() lets you use any of the DOS commands.
    http://www.computerhope.com/msdos.htm
    has a list of DOS commands

  5. #5
    ---
    Join Date
    May 2004
    Posts
    1,379
    type HELP in a console window

  6. #6
    Registered User
    Join Date
    Oct 2004
    Posts
    27
    that is classic thanks now i can have endless amounts of fun

    Last edited by Salem; 01-10-2005 at 06:51 AM. Reason: Removed disguised profanity

  7. #7
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by MadCow257
    Alright, basically system() lets you use any of the DOS commands.
    http://www.computerhope.com/msdos.htm
    has a list of DOS commands
    No, not exactly. The system command passes its argument to the operating system's shell. The shell then processes it as it would were you giving it that command from a console yourself. The reason I say "not exactly", is because system is an ANSI Standard defined function. It will function on all operating systems which implement C to the standard. This means on the Mac, *nix, Sun, etc, none of which have "DOS" natively.

    Quzah.
    Hope is the first step on the road to disappointment.

  8. #8
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Look at www.cprogramming.com/tips/. Near the middle you'll find a short article by a really handsome guy called, "Executing system commands". Read it.

  9. #9
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    er, I assumed he was on Windows
    It's a pretty fair assumption considering
    >> it tried a google search and got a big fat simple zero

  10. #10
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Regardless of what system you're on, it's often a bad programming practice, especially if you post code for help and people on a linux box can't compile and run your code correctly.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Operating System
    By Houssen in forum C Programming
    Replies: 18
    Last Post: 04-22-2008, 12:51 PM
  2. File System Implementation
    By dodgeviper in forum C Programming
    Replies: 9
    Last Post: 11-16-2007, 12:04 PM
  3. Using system icons
    By @nthony in forum Windows Programming
    Replies: 1
    Last Post: 01-13-2007, 06:56 PM
  4. Linux database system needed
    By BobS0327 in forum Tech Board
    Replies: 7
    Last Post: 06-11-2006, 03:56 PM
  5. BIOS system and memory allocation problem
    By beely in forum Tech Board
    Replies: 9
    Last Post: 11-25-2003, 06:12 AM

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