home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: SysTools / SysTools.zip / cpumt11b.zip / cpu_inst.cmd next >
OS/2 REXX Batch file  |  1996-10-06  |  929b  |  41 lines

  1. /* CPUMeter installation program                                   */
  2. /* copyright (c) 96 by Christof Pastors                            */
  3. /*                                                                 */
  4. /* This program simply creates a CPUMEter-object on your desktop   */
  5.  
  6.  
  7. '@Echo off'
  8. 'cls'
  9. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  10. call SysLoadFuncs
  11.  
  12.  
  13. say ''
  14. say 'This program creates a CPUMeter object on your desktop'
  15. say ''
  16.  
  17.  
  18. call charout ,'  Press [Enter] to continue...'
  19. dummy = ''
  20. do until dummy = '0d'x
  21.   dummy = SysGetKey('NOECHO')
  22. end
  23. call charout ,'0d1b'x'[K'
  24.  
  25.  
  26. curdir = directory()
  27.  
  28.  
  29. rc = stream('cpumeter.exe','c','query exists')
  30. if rc \= '' then
  31. do
  32.   title = "CPUMeter"
  33.   classname = 'WPProgram'
  34.   location = '<WP_DESKTOP>'
  35.   setup = 'OBJECTID=<CPUMeter>;EXENAME='rc';STARTUPDIR='curdir
  36.   call SysCreateObject classname,title,location,setup,u
  37. end
  38.  
  39.  
  40.  
  41.