Invoking A DOS Program Through A "C" Program
From: ~neil~ (neilwrites2_at_hotmail.com)
Date: 09/23/04
- Next message: Keith Thompson: "Re: union access"
- Previous message: Keith Thompson: "Re: struct and union alignment"
- Next in thread: Barry Schwarz: "Re: Invoking A DOS Program Through A "C" Program"
- Reply: Barry Schwarz: "Re: Invoking A DOS Program Through A "C" Program"
- Reply: Neil Kurzman: "Re: Invoking A DOS Program Through A "C" Program"
- Reply: Mark F. Haigh: "Re: Invoking A DOS Program Through A "C" Program"
- Reply: George Fulk: "Re: Invoking A DOS Program Through A "C" Program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Sep 2004 14:25:39 -0700
hello
I'm fairly new to the language, and my problem is I'm trying to write
a program to run a command from the DOS prompt "C:>". I don't know all
the functions in "C", however there are a few under the header file
"process.h" that could be used, but I'm not really sure what they
mean. I only know them by their name <prototype declaration>. I don't
understand the arguments that are passed down to these functions, is
why I'm seeking help to write this small program.
Functions like: "spawnl", "spawnle", "spawnlvpe" or "execl" to make a
parent program invoke or run a child process program like "qbasic.exe"
for example. I set up the PATH statement <Enviroment Command> in the
autoexec.bat file in C directory to bring up the application from the
DOS prompt.
With my limited knowledge of pointers, I'm little unsure how this is
written in "C". Could anyone help me with the code for the program as
described here.
<Inside the Win32 console window>
Starting...
Running DOS Command. . .
Press any key to continue. . .
This is more advanced C programming....... I'm still learning:)
Thanks
Neil
- Next message: Keith Thompson: "Re: union access"
- Previous message: Keith Thompson: "Re: struct and union alignment"
- Next in thread: Barry Schwarz: "Re: Invoking A DOS Program Through A "C" Program"
- Reply: Barry Schwarz: "Re: Invoking A DOS Program Through A "C" Program"
- Reply: Neil Kurzman: "Re: Invoking A DOS Program Through A "C" Program"
- Reply: Mark F. Haigh: "Re: Invoking A DOS Program Through A "C" Program"
- Reply: George Fulk: "Re: Invoking A DOS Program Through A "C" Program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|