home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / iplpau.zip / iplpause.txt < prev    next >
Text File  |  1993-12-05  |  10KB  |  167 lines

  1.     ┌─────────────────────────────────────────────────────────────────────┐
  2.     │                                                                     │
  3.     │IPLPAUSE:  A small timer program for your CONFIG.SYS during startup. │
  4.     │--------   (IPL means Initial Program Load...also known as "booting" │
  5.     │           the system). This is VERSION 1.1 - December 5, 1993       │
  6.     │                                                                     │
  7.     │      BY:  Knight Research - Copyright (c) 1993 All Rights Reserved. │
  8.     │      --                                                             │
  9.     │ License:  Give it away to all your friends, use it for private or   │
  10.     │ -------   commercial applications or whatever practical application │
  11.     │           you can find.                                             │
  12.     │                                                                     │
  13.     │Feedback:  Constructive feedback and suggestions can be sent via     │
  14.     │--------   Compuserve:     71301,3400                                │
  15.     │           Internet:       71301.3400@compuserve.com                 │
  16.     │                                                                     │
  17.     │           or mailed to:   Knight Research                           │
  18.     │                           P.O. Box 25285                            │
  19.     │                           St. Paul, Minnesota 55125                 │
  20.     │                           USA                                       │
  21.     │                                                                     │
  22.     │ Payment:  If you LIKE this program and USE it, drop me a note.      │
  23.     │ -------   I'll add you to my mailing list.                          │
  24.     │           If you LIKE this program and USE it, pass it on to at     │
  25.     │           least ONE other OS/2 user.                                │
  26.     │                                                                     │
  27.     │ Systems:  IPLPAUSE is a 16-bit application and should work well     │
  28.     │ -------   with any version of OS/2 since 1.1 (tested through        │
  29.     │           OS/2 2.1).                                                │
  30.     │                                                                     │
  31.     │ VERSION 1.1 BUG FIX:                                                │
  32.     │ --------- I have had reports from users who have installed          │
  33.     │           IPLPAUSE on a drive other than drive C. To do a better    │
  34.     │           search for the command processor (CMD.EXE), the program   │
  35.     │           now goes through the following search process:            │
  36.     │           (1) If the Second parameter is specified, use this as     │
  37.     │               the <drive/path/command> command processor.           │
  38.     │           (2) Otherwise, try to find COMSPEC= in the environment    │
  39.     │               (especially effective if you put IPLPAUSE after the   │
  40.     │                SET COMSPEC= line in your config.sys file).          │
  41.     │           (3) Otherwise, take the default installation location     │
  42.     │               for CMD.EXE...that is:  C:\OS2\CMD.EXE                │
  43.     │                                                                     │
  44.     │           If after all of this, IPLPAUSE can't fire off the CMD     │
  45.     │           processor, it now displays an error message.              │
  46.     └─────────────────────────────────────────────────────────────────────┘
  47.  
  48.     Description:  A small timer program, which when called from your
  49.     -----------   config.sys, allows you to press any key during system
  50.                   startup to "interrupt" the boot process, and places
  51.                   you at the C> prompt...Presentation Manager is not
  52.                   running at this point and you can freely copy your
  53.                   OS2.INI - OS2SYS.INI, modify your Startup.Cmd file,
  54.                   remove objects from the Startup folder or whatever
  55.                   maintenance you need to perform (no CHKDSK's though).
  56.  
  57.                   After making your changes, type EXIT to continue the
  58.                   system startup and continue on into Presentation Manager.
  59.  
  60.  
  61.      Advantages:  IPLPAUSE allows you to STOP digging out the installation
  62.      ----------   or other boot diskettes everytime you want to start OS/2
  63.                   in "maintenance mode"...just to be able to copy or restore
  64.                   your .INI files. Or have you ever crashed your system and
  65.                   had OS/2 "automatically" remember all the objects that
  66.                   were running, and attempts to restart them the next time
  67.                   you boot-up? Its difficult to break into the
  68.                   automatic startup sequence with CNTL-BREAK or the
  69.                   <LEFT-CNTL> <LEFT SHIFT> <F1> key combination.
  70.  
  71.                   Instead, when the system restarts, IPLPAUSE will give
  72.                   you 10 seconds (countdown style) whereby you can
  73.                   press any key to interrupt the system boot process, and
  74.                   nicely places you at the command prompt. If you don't
  75.                   press a key, the system will automatically continue on
  76.                   and boot OS/2. (If you're impatient, you can hit the
  77.                   <ESC> key to tell the system to skip the rest of the
  78.                   countdown and boot immediately).
  79.  
  80.  
  81.    SYNTAX:  Place in the CONFIG.SYS:
  82.    ------
  83.              CALL=C:\OS2\CMD.EXE /C "C:\IPLPAUSE.EXE" & EXIT
  84.  
  85.                   or
  86.  
  87.              CALL=C:\OS2\CMD.EXE /C "C:\IPLPAUSE.EXE 10" & EXIT
  88.  
  89.                   or
  90.  
  91.              CALL=C:\OS2\CMD.EXE /C "C:\IPLPAUSE.EXE 10 C:\OS2\CMD.EXE" & EXIT
  92.  
  93.  
  94.                   The '10' refers to the number of seconds which IPLPAUSE
  95.                   will countdown from before automatically continuing.
  96.                   (If left blank, the default is 10 seconds).
  97.  
  98.                   The LAST example has the command processor specified as
  99.                   the second parameter...IF YOU HAVE INSTALLED OS/2 ON
  100.                   A NON-DEFAULT DRIVE (D: E: etc.), please change the
  101.                   drive and path statement to the command processor...
  102.                   such as:
  103.              CALL=E:\OS2\CMD.EXE /C "E:\IPLPAUSE.EXE 10 E:\OS2\CMD.EXE" & EXIT
  104.  
  105.              You MUST specify the 'seconds' parameter as a placeholder
  106.              if you specify the command processor as the last parameter.
  107.  
  108.  
  109.    Installation:  Copy the IPLPAUSE.EXE program to the C:\ directory.
  110.    ------------   (It doesn't really matter where you put it but this is
  111.                   the place I used in the example).
  112.                   Place a one line CALL in your CONFIG.SYS file...pick an
  113.                   appropriate spot near the top...perhaps after the
  114.                   SET COMSPEC= line. Type the line EXACTLY as you see it,
  115.                   or paste the line from the IPLPAUSE.DAT using your
  116.                   favorite editor.
  117.                   See the example below:
  118.                   .
  119.                   .
  120.                   .
  121.      (partial     PROTSHELL=C:\OS2\PMSHELL.EXE
  122.      CONFIG.SYS)  SET USER_INI=C:\OS2\OS2.INI
  123.                   SET SYSTEM_INI=C:\OS2\OS2SYS.INI
  124.                   SET OS2_SHELL=C:\OS2\CMD.EXE
  125.                   SET AUTOSTART=PROGRAMS,TASKLIST,FOLDERS
  126.                   SET RUNWORKPLACE=C:\OS2\PMSHELL.EXE
  127.                   SET COMSPEC=C:\OS2\CMD.EXE
  128.                   rem
  129.                   rem ***************************************************
  130.                   rem ***************************************************
  131.                   rem ***************************************************
  132.                   rem
  133.     Insert here==>CALL=C:\OS2\CMD.EXE /C "C:\IPLPAUSE.EXE 10 " & EXIT
  134.     -----------   rem
  135.                   rem ***************************************************
  136.                   rem ***************************************************
  137.                   rem ***************************************************
  138.                   rem
  139.                   LIBPATH=C:\OS2\DLL;C:\OS2\MDOS;C:\;C:\IBMCOM\DLL;
  140.                   SET PATH=C:\OS2;C:\OS2\SYSTEM;C:\OS2\MDOS\WINOS2;
  141.                   SET DPATH=C:\OS2;C:\OS2\SYSTEM;C:\OS2\MDOS\WINOS2;
  142.                   .
  143.                   .
  144.                   .
  145.  
  146.  
  147.       Drawbacks:  IPLPAUSE is a normal ring-3 application. It does NOT
  148.       ---------   stop your system device drivers from starting up
  149.                   before it interrupts the boot process. (The program would
  150.                   have to be a device driver itself to accomplish this,
  151.                   and would require good testing to be sure it didn't cause
  152.                   conflicts with all the different system configurations
  153.                   in existence...but its not a bad idea).
  154.  
  155. IPLPAUSE DOES NOT:    (1) You can NOT do a CHKDSK /F on the drive you
  156. -----------------         booted from (OS/2 requires a LOCK on a drive to
  157.                           do a check-disk).
  158.                       (2) You can NOT do a SYSINSTX to replace the OS2LDR
  159.                           (can't replace Loader as you need a lock on the
  160.                            drive to accomplish this).
  161.  
  162.          Source:  The C source code is included with this program. IPLPAUSE
  163.          ------   was compiled with the MSC 6.0 compiler for backward
  164.                   16-bit compatability with OS/2 1.3 but the newer 32 bit
  165.                   compilers would have worked as well.
  166.  
  167.