home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1994 February / psl_9403.zip / psl_9403 / DOS / UT_SYSTM / CENVI2.ZIP / IDLEPROG.CMD < prev    next >
OS/2 REXX Batch file  |  1993-11-17  |  386b  |  12 lines

  1. @echo off
  2. REM IdleProg - Execute any program, but give it background priority
  3.  
  4. IF NOT "%1"=="" GOTO RUN_IDLE
  5. ECHO IdleProg - Execute any command at background priority
  6. ECHO EXAMPLE: IdleProg OS2TIME
  7.  
  8. :RUN_IDLE
  9. REM    236 ==  ORD_DOS32SETPRIORITY
  10. REM    1 == PRTYC_IDLETIME
  11. CEnvi DynamicLink("doscalls",236,BIT32,CDECL,0,1,0,0); spawn(P_NOWAIT,`%1 %2 %3 %4 %5 %6 %7 %8 %9`);
  12.