home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4867 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.1 KB  |  29 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!pipex!harlqn.co.uk!harlqn!paulb
  3. From: paulb@harlqn.co.uk (Paul Butcher)
  4. Subject: Re: Running DOS app with command line options
  5. Message-ID: <1993Jan12.100240.19502@harlqn.co.uk>
  6. Sender: news@harlqn.co.uk (Usenet News Account)
  7. Organization: Harlequin Ltd, Cambridge, UK
  8. References: <36@hymir.mlb.dmt.csiro.au>
  9. Date: Tue, 12 Jan 1993 10:02:40 GMT
  10. Lines: 17
  11.  
  12. In article <36@hymir.mlb.dmt.csiro.au> gsl@mlb.dmt.csiro.au (Geoff Lamb) writes:
  13. >
  14. >I would like make my windows program run the following DOS command :
  15. >
  16. >    rsh %1 "sendmail %2 %3 %4" < %5
  17. >
  18. >I have created a batch file with this command and a pif file to run it.
  19. >
  20. >My problem is that I can get the thing to run using WinExec() with no command
  21. >line options (the %1's ) but I can't see how I can get the command options in.
  22. >I have tried the LoadModule() function but it apparently only likes true Windows
  23. >programms and not pif's.
  24. >
  25. The function you want is ShellExecute - it can be found in the
  26. shell.dll library shipped with version 3.1.
  27.  
  28. PaulB->msgCount++
  29.