calling a program from a program

This is a discussion on calling a program from a program within the C Programming forums, part of the General Programming Boards category; I wasn't sure where to put this, but this one made the most sense. I've written a 16 bit app ...

  1. #1
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001

    calling a program from a program

    I wasn't sure where to put this, but this one made the most sense.
    I've written a 16 bit app in C and I'm going to use it as a sort of basic login program (not incredibly secure but enough to keep out the idiots who will screw something up). The method I'm using I found on some other forum site, experts exchange or something like that, basically I rename my program to command.com and the real command.com to com.com or something. My program will execute (this is all on win9x mind you), then call com.com to run. But I've been told there's some complicated stuff I have to do, so can anyone tell me what's up? What do I have to do?
    PHP and XML
    Let's talk about SAX

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    Take a look at this site and then especially the section called process control. There you will find the function execl() which you could use.

    http://www.cs.cf.ac.uk/Dave/C/

  3. #3
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    thanks shiro
    PHP and XML
    Let's talk about SAX

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. insufficient memory for tsr
    By manmohan in forum C Programming
    Replies: 8
    Last Post: 01-02-2004, 09:48 AM
  2. Date program starts DOS's date
    By jrahhali in forum C++ Programming
    Replies: 1
    Last Post: 11-24-2003, 05:23 PM
  3. calling constructor crashes program?
    By ichijoji in forum C++ Programming
    Replies: 6
    Last Post: 07-04-2003, 12:17 PM
  4. calling programs from a c++ program
    By md4u in forum C++ Programming
    Replies: 0
    Last Post: 05-04-2003, 08:39 AM
  5. calling c++ program from a webpage
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 10-04-2001, 10:41 AM

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