home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Science / Science.zip / pmcalc32.zip / install.cmd < prev    next >
OS/2 REXX Batch file  |  1998-05-11  |  766b  |  26 lines

  1. /*  rexx-program generating a program object on the dektop,
  2.     pointing to pmCalc.exe
  3.     Author: Martin Vieregg, Germany, May 1998  */
  4.  
  5. say ""
  6. say "This program creates a pmCalc program object on your desktop. Continue? Y/N"
  7. say ""
  8. say "Ein pmCalc Programmobjekt wird auf der Arbeitsoberfläche erzeugt. Weiter? J/N"
  9. say ""
  10. pull YesNo
  11. if \ ((YesNo = "Y") | (YesNo = "y") | (YesNo = "J") | (YesNo = "j")) then exit
  12.  
  13.  
  14. Call RxFuncAdd 'SysLoadFuncs','RexxUtil','SysLoadFuncs'
  15. Call SysLoadFuncs
  16.  
  17. CurrentDir = directory()
  18.  
  19. say "creation of a program object..."
  20.  
  21. Call SysCreateObject "WPProgram", "pmCalc", "<WP_DESKTOP>",,
  22.     "OBJECTID=<MVpmCalc>;EXENAME="CurrentDir"\pmCalc.exe;PARAMETERS=%;"
  23.  
  24. say "Successful creation of program object"
  25.  
  26. "pause"