calling and executing files

This is a discussion on calling and executing files within the C++ Programming forums, part of the General Programming Boards category; How would i run dir from my program is there sum way i can let the program use the command.com ...

  1. #1
    Registered User unknownUser's Avatar
    Join Date
    Apr 2002
    Posts
    14

    Smile calling and executing files

    How would i run dir from my program is there sum way i can let the program use the command.com program or what...
    I am trying to create a linux terminal emulator under windows

  2. #2
    Registered User Liam Battle's Avatar
    Join Date
    Jan 2002
    Posts
    114
    well you can use the dos.h, and call stuff with the system() function...

    altho i think in your situation you are creating a terminal so basically you want to create your own windows Shell...

    so you will have more work to do than just calling simple dos commands.
    LB0: * Life once school is done
    LB1: N <- WakeUp;
    LB2: N <- C++_Code;
    LB3: N >= Tired : N <- Sleep;
    LB4: JMP*-3;

  3. #3
    Xei
    Xei is offline
    Registered User Xei's Avatar
    Join Date
    May 2002
    Posts
    719

    API Call

    use the api calls:
    ShellExecute
    ShellExecuteEx

    See if that helps.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 07-21-2008, 04:10 AM
  2. Getting Errors when calling pModel (Model Loading again)
    By Shamino in forum Game Programming
    Replies: 8
    Last Post: 12-06-2005, 08:20 PM
  3. executing another program
    By Jamsan in forum C++ Programming
    Replies: 2
    Last Post: 04-26-2003, 09:22 PM
  4. Follow up question re Calling by Value vs Reference
    By Sheshi in forum C++ Programming
    Replies: 9
    Last Post: 03-16-2003, 05:58 PM

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