home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / vdms_110.zip / RUNDOS.CMD < prev    next >
OS/2 REXX Batch file  |  1994-01-11  |  2KB  |  32 lines

  1. /*-------------------------------------------------------------------------*
  2.  * RUNDOS.CMD                                                              *
  3.  *                                                                         *
  4.  * Rexx procedure to execute a DOS program via the server program VDMSERVE.*
  5.  * VDMSERVE must first be running before DOSCMD can be run.                *
  6.  *                                                                         * 
  7.  * Special notes:  most of the process running the BBS execute as detached *
  8.  * processes.  Under OS/2, it is not possible to detach a DOS process.     *
  9.  * DOSCMD removes this limitation by executing the DOS program from an     *
  10.  * OS/2 server program.                                                    *
  11.  *                                                                         *  
  12.  * Special commands interpreted by the Server:                             *
  13.  *     DOSCMD exit        : tells server process to terminate              *
  14.  *     DOSCMD refreshlog  : tells server to close server log, rename it    *
  15.  *                          to *.bak, and open a new log.                  *
  16.  *                                                                         *  
  17.  *-------------------------------------------------------------------------*/
  18.  
  19. echo off
  20.  
  21. cls
  22.  
  23. /*
  24.  * The following line is used in testing:
  25.  *
  26.  * doscmd '"c:\bin\msdos\misc\arj a vdm *.c *.lib *.h"' '/logfile=c:\usr\proj\vdm\doscmd.log' arg(1) arg(2) arg(3) arg(4) arg(5)
  27.  */
  28.  
  29. doscmd arg(1) arg(2) arg(3) arg(4) arg(5) arg(6) '/logfile=c:\bbs\logs\doscmd.log'
  30.  
  31. exit
  32.