🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2718

Re: Running DOS app with command line options

#2718
From: Paul Butcher
Date: Tue, 12 Jan 1993 10:02
17 lines
1110 bytes
In article <36@hymir.mlb.dmt.csiro.au> gsl@mlb.dmt.csiro.au (Geoff Lamb) writes:
>
>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.
>
The function you want is ShellExecute - it can be found in the
shell.dll library shipped with version 3.1.

PaulB->msgCount++
Technical Details
Message-ID: <1993Jan12.100240.19502@harlqn.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!harlqn.co.uk!harlqn!paulb
References: <36@hymir.mlb.dmt.csiro.au>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!harlqn.co.uk!harlqn!paulb
From: paulb@harlqn.co.uk (Paul Butcher)
Subject: Re: Running DOS app with command line options
Message-ID: <1993Jan12.100240.19502@harlqn.co.uk>
Sender: news@harlqn.co.uk (Usenet News Account)
Organization: Harlequin Ltd, Cambridge, UK
References: <36@hymir.mlb.dmt.csiro.au>
Date: Tue, 12 Jan 1993 10:02:40 GMT
Lines: 17