home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!sol.ctr.columbia.edu!destroyer!ubc-cs!bcsystems!bcsc02.gov.bc.ca!CFORDE
- Newsgroups: comp.os.os2.misc
- Subject: Re: Lost all system objects, not all apps
- Message-ID: <16862E1E3.CFORDE@bcsc02.gov.bc.ca>
- From: CFORDE@bcsc02.gov.bc.ca
- Date: Mon, 14 Sep 92 16:03:31 PDT
- References: <BALDWIN.92Sep14173711@csservera.scs.usna.navy.mil>
- Organization: BC Systems Corporation
- Nntp-Posting-Host: bcsc02.gov.bc.ca
- Lines: 41
-
- In article <BALDWIN.92Sep14173711@csservera.scs.usna.navy.mil>
- baldwin@csservera.scs.usna.navy.mil (J.D. Baldwin) writes:
-
- >
- >How can I a) get this stuff back, or b) failing that, re-install the originals
- >from the install disks without re-installing all of OS/2?
- >
- Maybe the following utility will help:
-
- /* ReCreate.CMD - restore lost desktop objects */
- /* by Greg Czaja - July 29, 1992 */
- /* requires July's REXX20 fixes */
- Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
- Call SysLoadFuncs;
- SysBootDrive=Filespec('Drive',Value('COMSPEC',,'OS2ENVIRONMENT'));
- file_name=SysBootDrive||'\OS2\INI.RC';
- Say "The program will list all standard WPS objects"
- Say "Reply Yes if you want recreate given object"
- Say "Default reply is No if you press ENTER,"
- Say "Enter End if you want to end the program:"
- Do While Lines(file_name) > 0;
- line=Linein(file_name);
- If line='' Then Iterate; /* skip blanks */
- /* get the "create object lines */
- Parse Var line '"PM_InstallObject"' line;
- If line='' Then Iterate; /* skip others */
- Parse Var line '"'head'" 'line; /* get header */
- Parse Var line '"'setup'"' .; /* get setup string */
- Parse Var head title';'object';'location;
- Say title "- Yes/No/End ?";
- Pull reply ;
- If Left(reply,1) = 'E' Then Leave;
- If Left(reply,1) <> 'Y' Then Iterate;
- If SysCreateObject(object,title,location,setup,'Replace') = 0
- Then Say 'Error creating:' title;
- Else Say title 'created !';
- End;
- rc=Stream(file_name,'C','Close');
- Exit; /* Enjoy your desktop ! */
-
-
-