home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / wps / system / security / sample.cmd < prev    next >
Encoding:
Text File  |  1993-07-21  |  1.3 KB  |  32 lines

  1. /* ----------------------------------------------------------
  2. ** SAMPLE.CMD
  3. ** The Secure Workplace
  4. ** Sample Object Creation Program
  5. ** ---------------------------------------------------------*/
  6. '@echo off'
  7.  
  8. /* ---------------------------------------------------------
  9. ** Load the REXX Utility functions
  10. ** --------------------------------------------------------*/
  11. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  12. call SysLoadFuncs
  13.  
  14. /* ---------------------------------------------------------
  15. ** Create a Secure Folder on the Desktop
  16. ** --------------------------------------------------------*/
  17. ClassName = 'SecureFolder'
  18. Setup     = 'OBJECTID=<SWP_SECUREFOLDER>;NOCOPY=YES;NOMOVE=YES;NOLINK=YES;NOSHADOW=YES;NORENAME=YES;'
  19. Title     = 'Sample Secure Folder'
  20. Location  = '<WP_DESKTOP>'
  21. result    = SysCreateObject(ClassName, Title, Location, Setup, 'R')
  22.  
  23. /* ---------------------------------------------------------
  24. ** Create a Secure Program on the Deskop
  25. ** --------------------------------------------------------*/
  26. ClassName = 'SecurePgm'
  27. Setup     = 'OBJECTID=<SWP_SECUREPROGRAM>;EXENAME=*;PROGTYPE=WINDOWABLEVIO;NOCOPY=YES;NOMOVE=YES;NOLINK=YES;NORENAME=YES;'
  28. Title     = 'Sample Secure Program'
  29. Location  = '<WP_DESKTOP>'
  30. result    = SysCreateObject(ClassName, Title, Location, Setup, 'R')
  31. exit
  32.