Thread: System command

  1. #1
    Registered User
    Join Date
    Jan 2009

    System command

    I used the system("cls") command inorder to clear the screen. But it did nt work. The system("..") command is not having any effect whichever DOS command is inserted within the quotes. Why is this?

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    It should work. Perhaps you can post an example.

    Also, what OS are you running on - if you are trying to use Windows/DOS commands on a Linux system, it obviously won't work.

    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
    Jan 2009
    The OS is windowsXP and the compiler is Borland 3.0.

  4. #4
    ... kermit's Avatar
    Join Date
    Jan 2003
    Post some code. Otherwise we are only guessing...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. system command not executing with format specifier
    By ridhamshah in forum C Programming
    Replies: 6
    Last Post: 11-08-2006, 05:58 AM
  2. Help on System Command
    By Smoki in forum C++ Programming
    Replies: 5
    Last Post: 12-14-2005, 06:47 PM
  3. Problem using system() command.
    By mmongoose in forum C++ Programming
    Replies: 2
    Last Post: 08-20-2005, 08:44 PM
  4. System() command opens a dos-box
    By phil_drew in forum Windows Programming
    Replies: 2
    Last Post: 03-16-2004, 07:43 AM
  5. IDEA: Customizeable command system
    By Inquirer in forum Contests Board
    Replies: 1
    Last Post: 10-02-2002, 10:17 PM