using c++ to use a ms-dos shell command

This is a discussion on using c++ to use a ms-dos shell command within the C++ Programming forums, part of the General Programming Boards category; how cna i make c++ use a shell command? in qbasic and vbasic is shells, what about borland c++? thanks...

  1. #1
    Unregistered
    Guest

    Unhappy using c++ to use a ms-dos shell command

    how cna i make c++ use a shell command? in qbasic and vbasic is shells, what about borland c++? thanks

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    108

    system("command");

    #include stdlib.h.

    Replace command with whatever you need (don't forget the parentheses).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can I issue a command to DOS from within a program?
    By Sukarn in forum Windows Programming
    Replies: 2
    Last Post: 12-22-2006, 07:44 AM
  2. Replies: 8
    Last Post: 09-16-2006, 02:18 PM
  3. problem with "touch" command in c program
    By Moony in forum C Programming
    Replies: 10
    Last Post: 08-01-2006, 10:56 AM
  4. how to command to close a dos window?
    By Unregistered in forum C++ Programming
    Replies: 9
    Last Post: 07-19-2002, 03:04 PM
  5. Writing A Dos Shell AkA Win 3.11 Mark 2 :p
    By Arius Myst in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 06-22-2002, 05:45 PM

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