TIP: Click on subject to list as thread! ANSI
echo: os2
to: Dan Egli
from: Peter Knapper
date: 1999-10-23 17:14:23
subject: Registration

Hi Dan,

 DE> I am wondering if there is a method for disabling the stupid
 DE> registration reminder that pops up periodically.

Arrrg. We have an Elephant killer in our midst..........;-)

Here is a message from the OS/2 REXX Echo that I captured some time ago. It
will do what you want.

***************************************************
   From: David Noon                           
     To: K. Lindholm                          
Subject: The elephant

In a message dated 12-31-98, K. Lindholm said to All about "The elephant"

Hi K.,

KL>After a year (or more) the pesky elephant is back demanding 
KL>I register.  Remind me please how to kill him.

Have a REXX script that will switch him on or off.

============================= SWTCHART.CMD =================================
/* REXX program to disable/enable the dancing elephant      */

/* Copyright (C) 1998, David W. Noon                        */
/* All rights reserved.                                     */

/* You may use this code freely. You may also distribute it */
/* freely provided no charge is levied beyond that of its   */
/* distribution medium.                                     */

/* Register REXXUTIL */
CALL RxFuncAdd 'SysLoadFuncs','REXXUTIL','SysLoadFuncs'
CALL SysLoadFuncs

/* Obtain the command line argument */
ARG Setting

SELECT
   WHEN Setting == 'OFF' THEN
   DO
      /* Set DISABLED switch in OS2.INI */
      CALL SysIni 'USER','PM_Workplace:ART','DISABLED','00'X
      /* Remove ENABLED switch from OS2.INI */
      CALL SysIni 'USER','PM_Workplace:ART','ENABLED','DELETE:'
      SAY 'Re-IPL your system and the elephant is quiet.'
   END

   WHEN Setting == 'ON' THEN
   DO
      /* Build standard path/filename */
      Path_filename = SysBootDrive() || ':\OS2\ART\ARTCHRON.EXE' ||,
            '00'X
      /* Set ENABLED switch in OS2.INI */
      CALL SysIni 'USER','PM_Workplace:ART','ENABLED',Path_filename
      /* Remove DISABLED switch from OS2.INI */
      CALL SysIni 'USER','PM_Workplace:ART','DISABLED','DELETE:'
      SAY 'Re-IPL your system and the elephant dances once more.'
   END

   OTHERWISE
      SAY 'Unrecognized option "' || Setting ||,
            '". Only ON and OFF are valid.'
END

EXIT 0
============================================================================

Use SWTCHART OFF in an OS/2 command session and re-boot your machine. Art
the elephant is gone until you decide to bring him back, if ever.

Regards

Dave
****************************************************

Regards.............pk.

--- Maximus/2 3.01
* Origin: Another Good Point About OS/2 (3:772/1.10)

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™.