I was searching through the documentation to find a function to execute a file...and I found one (I think). From what I can tell I can use popen() to execute a file and pass various flags to it.
I'm having some problems though. I'm trying to run a program called 'qstat' that gives statistics about a game server.
I need to pass these flags '-R -P -hls <IP>' to the program. I have done this but when I try to read from the file handler with fread() I don't get anything passed back.
I'm running Windows 98 and have checked that the things I'm passing are working from an ms-dos prompt.
Can anyone give me some pointers as how to get it working.
Thanks.