dos commands in c++

This is a discussion on dos commands in c++ within the A Brief History of Cprogramming.com forums, part of the Community Boards category; how do you execute dos commands in c++? like: int var1; cin>>var1; start [var1] or net use [var1] I dont ...

  1. #1
    Unregistered
    Guest

    dos commands in c++

    how do you execute dos commands in c++? like:
    int var1;
    cin>>var1;
    start [var1] or net use [var1]
    I dont know how to explain it but where I can make variables and input them in dos commands and execute them

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    system("whatever dos command goes here");

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Executing DOS commands from inside an image
    By Moony in forum C Programming
    Replies: 6
    Last Post: 03-16-2008, 01:40 PM
  2. DOS commands using C++
    By rusty0412 in forum C++ Programming
    Replies: 5
    Last Post: 07-11-2003, 05:56 PM
  3. Dos commands hehe
    By Carp in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-17-2003, 02:51 PM
  4. DOS Commands
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 05-13-2002, 04:40 AM
  5. DOS Commands
    By Zuul in forum C++ Programming
    Replies: 11
    Last Post: 01-04-2002, 04:41 PM

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