home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / 20INIRST.ZIP / INIREST.TXT < prev   
Text File  |  1991-11-09  |  2KB  |  41 lines

  1. Area: Os2, Msg #833, 12:36pm Nov-07-91
  2. From:    Jay Rolette
  3. To:      All
  4. Subject: Restoring Workplace Shell
  5.  
  6. I got this from our internal forums and it has proved to be EXTREMELY useful.  
  7. I'm just going to pretty much quote the note directly...
  8.  
  9. /\/\/\/\/\/\/\/\/\/\/\ Cut Here /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
  10.  
  11. Since the problem of "losing" objects seems to be a common one, and also, 
  12. since many folks need a way to re-install and reconfigure, I thought the 
  13. following little REXX program would be useful.
  14.  
  15. The program uses the ability of REXX to modify OS2.INI.  Most of the objects 
  16. initially set up on the workplace shell are created by the shell on the first 
  17. boot after installation.  The means this is done is that the OS2.INI built 
  18. during install contains "appname keyname keyvalue" for the objects to be 
  19. installed.  You can look at the INI.RC file in the OS2 subdirectory for the 
  20. set of things placed into the OS2.INI initially.
  21.  
  22. /* This rexx command file can be used to install objects that you */
  23. /* have lost, etc.  Just edit it to install those object you      */
  24. /* want.                                                          */
  25. call RxFuncAdd 'SysLoadFuncs' , 'RexxUtil', 'SysLoadFuncs'
  26. call SysLoadFuncs
  27. /* Put another shredder on the desktop */
  28. call SysIni "USER","PM_Worksplace:InstallObject",":WPShredder:Ollie's"," " /* 
  29. Create a folder on the desktop */
  30. call SysIni "USER","PM_Workplace:InstallFolder","\MYFOLDER:My Folder"," "
  31.  
  32. /\/\/\/\/\/\/\/\/\/\/\/\ Cut Here /\/\/\/\/\/\/\/\/\/\/\/\/\/\
  33.  
  34. Hope this comes in handy for you...  
  35.  
  36. ---
  37.  * Origin: OS/2??  is that like a PS/2?   <bonk> (1:382/20)
  38.  
  39. ------------------------------------------------------------------------------
  40.  
  41.