From: jfs10 AT psu DOT edu (Jonathan Swaby) Newsgroups: comp.os.msdos.djgpp Subject: Re: system() with command line options Date: Mon, 14 Apr 1997 15:23:41 GMT Organization: Penn State University Message-ID: <33524afd.11618186@news.psu.edu> References: <2 DOT 2 DOT 16 DOT 19970411142417 DOT 3e5f5d50 AT email DOT psu DOT edu> Reply-To: jfs10 AT cac DOT psu DOT edu NNTP-Posting-Host: mansell.la.psu.edu Lines: 25 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 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 >