home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: 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
-
- 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++
-