by gordonb.ngoao@[EMAIL PROTECTED]
(Gordon Burditt)
May 7, 2008 at 01:38 AM
>I'm new to programming. I am a Software Test Engineer. I am trying
>to write a program that launches a HyperACESS executable and then
>inputs a bunch of integers and characters into the application. I was
The only way C provides to run something else is with the system()
function. (System extensions might provide something like execl(),
popen(), etc.)
>thinking of using the system() function like so: system("cd C:\Program
>Files\HAWin32\HAWIN32.EXE") but thats as far as my feeble mind has
>taken me.
I don't know of any command interpreter that uses the command "cd"
to run something. Sometimes that is used to change the current
working directory. The command to run something is often simply
the name of the program to run (perhaps with arguments). The first
thing I'd do with your attempt is dropping the three characters "cd
" from the front of the argument to system().
>If using the system() function is the best way of going
>about this can someone point me to a good example of using system() in
>this manner? If not, any suggestions?
Anything you feed to system() is dependent on the command interpreter.
You need to figure out what OS you will be using and what the
commands look like for that OS.
--
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
-- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line. Sorry.