SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.

The Southern California OS/2 User Group
USA

SCOUG OS/2 For You - August 1999


 Dear Mr. Know-It-All 

Mr. Know-It-All has the answers to even the really tough questions.


Q.  Dear Mr. Know-It-All,

I lost my Drives object. How do I get it back?

A.  This is a job for your regular Desktop backups. However, since you asked, you probably don't have one. Create a REXX CMD file (i.e. fixme.cmd) containing the lines:

/* rexx */ call SysCreateObject 'WPDrives','Drives','<WP_DESKTOP>','OBJECTID=<WP_DRIVES>;','R' say 'RESULT =' RESULT

The REXX comment must be the first line. Run fixme.cmd from an OS/2 command prompt. If all goes well, RESULT will be set to 1 and the Drives object will appear on the Desktop. You can then move it from the Desktop to the Connections folder.

This method can be used to recreate any Workplace Shell object as long as you know its Class, Object id and settings. The general form of SysCreateObject is:

call SysCreateObject 'Class', 'Title', 'Location', 'Settings', 'Option'

where:

Class
is the object's class.
Title
is the name assigned to the object. This is what the WPS displays with the object's icon.
Location
is where to create the object. The desktop is often a good choice, but any valid location can be used.
Settings
are the object specific settings. Each setting is terminated by a semi-colon. For the types of objects you are likely to recreate using this technique, the OBJECTID value should be the only value you need to supply.
Option
is either Fail, Replace or Update. Only the first letter is needed. R is usually the best choice.

For example, if two weeks later you lose your drive D object and you still do not have a backup, the following would SysCreateObject call will recreate it.

call SysCreateObject 'WPDisk' ,'Drive D','<WP_DRIVES>','OBJECTID=<WP_DRIVE_D>';','R'

This technique can sometimes correct corrupted Drive objects.


Curious or in doubt, you can ask Mr. Know-It-All
OS/2 is his specialty and sharing solutions is his passion
Mr. Know-It-All lives in Southern California.


The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA

Copyright 1999 the Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation.
All other trademarks remain the property of their respective owners.