home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / DOSCMD.ZIP / DOSCMD.DOC < prev    next >
Text File  |  1991-07-09  |  781b  |  17 lines

  1. This program demonstrates how to issue commands to the DOS session from an
  2. OS/2 V1.2 or V1.3 fullscreen or windowed session.  It passes the command line
  3. parameters to the DOS session.  The steps it takes are:
  4.  
  5. Get a file handle (via DosOpen) to the DOS.SYS device driver.
  6. Find the session number of the DOS box by looking through the task list.
  7. Build the string to pass to the DOS box by putting spaces around each
  8.    command line parameter and separating them with carriage returns.
  9. Write the string to the handle received from the DosOpen.
  10. Make the DOS box the foreground, so it resumes running and can execute the
  11.    command(s).
  12. Print a message telling how it went.
  13.  
  14. There is a bit of error handling going on, but that is basically it.
  15.  
  16. Dennis Rowe  75140,3710
  17.