home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / modula2 / 1378 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.8 KB

  1. Path: sparky!uunet!europa.asd.contel.com!emory!ogicse!psgrain!hippo!apj
  2. From: apj@beldin.sun.ac.za (Andries Dippenaar)
  3. Newsgroups: comp.lang.modula2
  4. Subject: Re: executing from within a modula-program
  5. Message-ID: <1992Nov12.101226.10318@hippo.ru.ac.za>
  6. Date: 12 Nov 92 10:12:26 GMT
  7. Article-I.D.: hippo.1992Nov12.101226.10318
  8. References: <BxJ2rn.Du4@uxa.ecn.bgu.edu>
  9. Sender: news@hippo.ru.ac.za
  10. Organization: Rhodes University, Grahamstown, South Africa
  11. Lines: 25
  12. X-Newsreader: TIN [version 1.1 PL6]
  13.  
  14. Mark A. Morrell (mgmam@uxa.ecn.bgu.edu) wrote:
  15. :  > I use Topspeed modula 3.1 and had a problem in my last program. Does
  16. :  > anyone know how Ii can execute another program from a modula program so
  17. : This is a procedure which stuffs a character into the keyboard buffer,
  18. : and may be of use to you.  Stuff the buffer, then exit your program.
  19.   [stuff deleted]
  20.  
  21. That's not one of the better ways of doing it.  TopSpeed supplies an
  22. Execute procedure in Lib if I remember correctly.  They've actuallt
  23. got two flavours, Execute and ExecuteCmd.  The former can only be used
  24. to execute binaries (ie. .COM or .EXE files) and the latter is passed
  25. a complete DOS commandline (like C's system command) which is then
  26. executed under COMMAND.COM (actually %COMSPEC) so that you can also
  27. run batch files.  The easiest way to locate it in the libaries is to
  28. type it in the editor, put the cursor over it and hit F1.
  29.  
  30. Andries
  31. ***********************************************************************
  32. *       /|~~\ * APJ Dippenaar        * "If you wanna make the world a *
  33. *     /__|__/ * apj@beldin.sun.ac.za *  better place, take a look at  *
  34. *   /    |    * Univ of Stellenbosch *  yourself and make a change."  *
  35. * /   \__|    * South Africa         *             -- Michael Jackson *
  36. ***********************************************************************
  37.