Article View: comp.os.ms-windows.programmer.misc
Article #2669Running DOS app with command line options
From: Geoff Lamb
Date: Mon, 11 Jan 1993 05:30
Date: Mon, 11 Jan 1993 05:30
26 lines
1259 bytes
1259 bytes
I would like make my windows program run the following DOS command : rsh %1 "sendmail %2 %3 %4" < %5 I have created a batch file with this command and a pif file to run it. My problem is that I can get the thing to run using WinExec() with no command line options (the %1's ) but I can't see how I can get the command options in. I have tried the LoadModule() function but it apparently only likes true Windows programms and not pif's. Does anyone out there know how I can get the command line options to work? Any suggestion would be apprieciated (Any suggestions on how to improve my spelling might help too :-) ) Thanks in advance Geoff Lamb -- Geoff Lamb, CSIRO Div of Manufacturing Tech, Phone: +61 3 487 9295 Locked Bag No. 9, Preston, Vic, 3072, Australia. Fax: +61 3 484 0878 Internet: gsl@mlb.dmt.csiro.au Segmentation fault (core dumped)
Technical Details
Message-ID:
<36@hymir.mlb.dmt.csiro.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!asgard!gslShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!asgard!gsl From: gsl@mlb.dmt.csiro.au (Geoff Lamb) Newsgroups: comp.os.ms-windows.programmer.misc Subject: Running DOS app with command line options Message-ID: <36@hymir.mlb.dmt.csiro.au> Date: 11 Jan 93 05:30:12 GMT Organization: CSIRO Division of Manufacturing Technology, Melbourne, Australia Lines: 26