Mail Archives: djgpp/1997/04/14/12:58:45
It is something in RSXNTDJ that is causing the problem. When
I compile the program with gcc -Zwin32 the system call does
not work if command line options are used. It generates a BAD COMMAND
or FILENAME error. If I compiled it without using the -Zwin32
option it works as it should. I have tried the suggestions people
have replied with, but none of them have made a difference.
Does anyone have any other ideas?
thanks Jonathan Swaby
On Fri, 11 Apr 1997 14:24:17 GMT, Jonathan Swaby <jfs10 AT psu DOT edu>
wrote:
>I have a program that will need to run another program with some
>options. The program line looks like success=system(test.exe -d c:\junk\); .
>Where test is a self extracting archive. I am using rsxntdj djgpp v2 on
>a win95 machine. When this line is executed I get bad command or file name.
>Running
>test.exe on its own works perfectly. Does anyone know what I am doing wrong?
>I have looked thru the FAQ. My command line is under 126 characters, so I don't
>think this is the problem. Any help would be great.
>
>Thanks JOnathan Swaby
>
- Raw text -