home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / tlktbeta / samples / wpstutor / install.cmd next >
Encoding:
Text File  |  1993-07-14  |  1017 b   |  26 lines

  1. /* Register the WPSTutorial class and create an object instance. */
  2.  
  3. /* Load the REXX utility */
  4. Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  5. Call SysLoadFuncs
  6.  
  7. /* Make sure the proper directories have been created and copy   */
  8. /* the required files to those directories.                      */
  9. Call SysMkDir '..\..\..\DLL'
  10. COPY 'wpstutor.dll' '..\..\..\DLL'
  11. Call SysMkDir '..\..\..\OS2BIN'
  12. COPY 'showdesc.exe' '..\..\..\OS2BIN'
  13.  
  14. /* Register the class with the Workplace Shell                   */
  15. if SysRegisterObjectClass( 'WPSTutorial', 'WPSTUTOR')
  16.         then say 'WPSTutorial class registered sucessfully.'
  17.         else say 'Error registering the WPSTutorial class.'
  18.  
  19. /* Create an object instance of the class                        */
  20. if SysCreateObject( 'WPSTutorial', 'WPSTutorial', '<WP_DESKTOP>',,
  21.                     'OBJECTID=WPSTUT001')
  22.         then say 'WPSTutorial instance created sucessfully.'
  23.         else say 'Error creating WPSTutorial instance.'
  24.  
  25. Exit 0
  26.