TIP: Click on subject to list as thread! ANSI
echo: os2
to: Jan Van Der Heide
from: Eddy Thilleman
date: 1999-10-02 11:57:25
subject: WP_DESKTOP setting lost

Hello Jan,

28 Sep 99 07:19, Jan van der Heide wrote to All:

JH> Some time ago a REXX repair script was given to fix a problem in which
JH> the setting for the DESKTOP could not be found during boot. A friend
JH> of mine encounters this problem that when he boots up ends with an
JH> OS/2 command prompt and an error message about not being able to find
JH> the desktop. Where can I find this REXX script or can somebody repost
JH> it? TIA

If the desktop lost it's object ID: . To recreate it, run the
following piece of REXX:

/* restore the desktop's object ID:  */
call RxFuncAdd 'SYSLOADFUNCS', 'REXXUTIL', 'SYSLOADFUNCS'
call SysLoadFuncs
call SysSetObjectData 'C:\DESKTOP', 'OBJECTID='

(Replace "C:" with your boot drive if necessary.)

              ---------------------

With a certain fixpack (I forgot which) the function SysBootDrive() is added,
to test for this function, you can run this REXX script:

/* test availability of the SysBootDrive() function */
call RxFuncAdd 'SYSLOADFUNCS', 'REXXUTIL', 'SYSLOADFUNCS'
call SysLoadFuncs
say 'boot drive is' SysBootDrive()

              ---------------------

When the SysBootDrive() function is available, you can replace the drive
letter of the boot drive by a call to this function:

/* recreate object ID of desktop */

call RxFuncAdd 'SYSLOADFUNCS', 'REXXUTIL', 'SYSLOADFUNCS'
call SysLoadFuncs
call SysSetObjectData SysBootDrive() || '\DESKTOP', 'OBJECTID='


  Greetings   -=Eddy=-        email: eddy.thilleman@net.hcc.nl

... A dirty mind is a terrible thing to waste.
--- GoldED/2 3.0.1
* Origin: Windows95 is a graphic DOS extender (2:500/143.7)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.