home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / timek132.zip / tkinst.cmd < prev    next >
OS/2 REXX Batch file  |  1999-03-05  |  562b  |  21 lines

  1. /* The REXX script creates TimeKeeper/2 program object on the desktop */
  2. /* v1.0 */
  3.  
  4. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  5. call SysLoadFuncs
  6.  
  7. /* '@echo off' */
  8.  
  9. TKPATH = DIRECTORY()
  10.  
  11. if SysCreateObject("WPProgram","TimeKeeper/2","<WP_DESKTOP>",,
  12.                    "PROGTYPE=PM;EXENAME="TKPATH"\TIMEKEEP.EXE;STARTUPDIR="TKPATH)
  13. then 
  14.     do
  15.         say 'TimeKeeper/2 Object installed on Desktop'
  16.     end
  17. else 
  18.     do
  19.         say 'TimeKeeper/2 couldn''t install object on the Desktop or the object already exists'
  20.     end
  21.