VxSnX5ENZeyCu+DMGoZ7jaB3YvJq!GgRU1J9vovgoc92XotFRhJ1I9JkFFJ8RjUm   
   LuRIgYUjYyx+9aPgKLuRUFCTnxf1abOQYmk4UXEB!ZwA6ZeE6ulA=   
   properly   
   From: Paul Ratcliffe    
      
   On Thu, 17 May 2012 18:12:44 -0500 (CDT), Eric Erickson   
    wrote:   
      
   > I recently opened up the template folder on one of my eCS V2.1 machines and   
   > noticed that a bunch are missing. I don't have the Program, Data, Printer or   
   > Network Printer anymore. How can I restore these? I don't want to go the   
   > 'Restore Archive' route as I've made other changes that I don't want to lose   
   > and really don't know how far back to even go to get them restored. Now if I   
   > know what the ObjectId and classes were, I could write some rexx to restore   
   > them. But don't seem to have a list handy.    
      
   I thought these might get recreated automatically if deleted when the WPS   
   is next started. But perhaps not...   
      
   > Whats the best tool utility out there these days to dig into WPS Objects to   
   > get the necessary information.    
      
   I use my own WPS class to generate the below (it uses Henk Kelder's   
   WPTOOLS.DLL to decode the setup strings).   
      
   /**/   
   call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'   
   call SysLoadFuncs   
      
   class = 'WPProgram'   
   title = 'Program'   
   location = ''   
   setup = 'TEMPLATE=YES;NODELETE=YES;NOPRINT=YES;'   
   call SysCreateObject class, title, location, setup, 'R'   
      
   class = 'WPDataFile'   
   title = 'Data File'   
   location = ''   
   setup = 'TEMPLATE=YES;NODELETE=YES;'   
   call SysCreateObject class, title, location, setup, 'R'   
      
   class = 'WPPrinter'   
   title = 'Printer'   
   location = ''   
   setup = 'TEMPLATE=YES;NODELETE=YES;NOPRINT=YES;DEFAULTVIEW=ICON;'   
   call SysCreateObject class, title, location, setup, 'R'   
      
   class = 'WPRPrinter'   
   title = 'Network Printer'   
   location = ''   
   setup = 'TEMPLATE=YES;NODELETE=YES;NOPRINT=YES;DEFAULTVIEW=ICON;'   
   call SysCreateObject class, title, location, setup, 'R'   
      
   --- Internet Rex 2.31   
    * Origin: The gateway at Omicron Theta (1:261/20.999)   
|