

                        Program   C E N
                ( Batch control center and more...)

                      U S E R's  G U I D E

                   Copyright (c) by ETS 1995

     If you use in your work different programs, you know, that
     many of them need additional memory-resident support programs,
     such as video-drivers, mouse driver, etc.

     Some programs need a unique set of support drivers and are
     incompatible with some other drivers. So, to install such a
     program, user must look at resident programs in memory. If
     someone of needed drivers is absent, user must load it, and if
     someone of incompatibles is there in memory, it is necessary to
     unload that, or to reboot the system.

     To do these by means of bath-file is rather troublesome, isn't it?

     The second problem is that some of programs can work
     correctly only if run in their own directory. User must seek its
     directory to run the program and then restore work drive and
     directory.

     Usual bath-files can't do this!

   Program CEN.COM help You to correct these problems!

   CEN.COM is a little program (3486 bytes) and it can do in
   bath-file the following:

   -  test, if mouse is installed; ERRORLEVEL will be  0 if
      none, or the number of mouse buttons;

   -  test, if program with the name you are interesting is
      there in DOS memory; ERRORLEVEL will be 0 if not found,
      or 1 if the program was found in memory;

   -  save current drive and directory in nonused memory of
      the computer;

   -  restore saved by it drive and directory;

   -  get user's alternative answer (from keyboard or by mouse)
      and set corresponding ERRORLEVEL;

   -  set off "Num Lock", "Caps Lock", "Scroll Lock";

   -  reboot the computer.

   You can also get list of all programs in DOS memory   (except
   for devices and programs, loaded in EMS or by himem)


===============================================================
 VARIANTS OF USE OF CEN.COM:

   1) CEN   ( without arguments )

            You will get list of all programs in DOS memory


________________________________________________________________

   2) CEN MOUSE  [ > nul ]
      Program will say about mouse presence and number
      of its buttons (if present);

      ERRORLEVEL will 0 if mouse not installed or number
      of mouse buttons.

      Redirect output to NUL if You need not to see answer
      on the screen.

________________________________________________________________

   3) CEN <mask>  [ > nul ]
      Program will scan memory for program, corresponding to the mask.
      If found, it says about and set ERRORLEVEL to 1;
      else it says "not found" and set ERRORLEVEL to 0.

      Redirect output to NUL if You need not to see answer
      on the screen.

      There is information about full pathname of resident
      programs in the memory, so You must write in "mask"
      pathname of program of your interest, or use symbols
      "?" and "*". Symbol "?" is equal to any single symbol,
      and "*" is equal any nonzero set of symbols.

   !!! WARNING !!!     Some of MS-DOS 5.* drivers (SHARE for
       instance) delete information about its path from memory.

      EXAMPLES:
                   CEN d:\gmouse\gmouse.com

                   CEN *mouse.*

           Both examples are to test if mouse driver is in memory,
           but in the first example a unique program is searched for,
           and in the second example any program with the name,
           containing "mouse" is searched for (LMOUSE for instance).

       Example of BATCH-file:

       @echo off
       rem We will run the ChiWriter with VEGAINIT
       rem Check for VEGAINIT
       cen *\vegainit.* >nul
       if errorlevel==1 goto VEGA_Yes
       rem Run VEGAINIT for remain resident
       vegainit -E
       :VEGA_Yes
       rem Run ChiWriter
       CW
       rem The End

  We run VEGAINIT if it isn't yet done, and run ChiWriter.

  We also can stop execution if there are incompatibles in
  memory  ( some mouse's for Turbo C++ V.1.00 for example )

       @echo off
       cen *mouse.* >nul
       if errorlevel==1 goto NoTC
       tc
       goto TheEnd
       :NoTC
       echo This program doesn't work with THIS MOUSE !!!
       :TheEnd       rem The End


________________________________________________________________

   4)  CEN SAVE
          - save current drive and directory
       CEN RESTORE
          - restore saved drive and directory

       Bath-file example:

         Current directory is Your work directory
         ChiWriter's directory is  D:\CWR
         You have bath file:

       @echo off
       rem We will save current drive & directory
       cen save >nul
       rem Here we can change drive & directory
       d:
       cd \cwr
       rem After this we can start ChiWriter
       vegainit -E
       cw
       rem Here we have already closed ChiWrter's session
       rem and will change drive & directory to the previous
       cen restore >nul

     Certainly, You can also test if VEGAINIT is in memory in  this
     bath-file, as in the example above.


________________________________________________________________

   5)  CEN RESPONSE:<list of symbols for alternative answers>

       <list...> can contain letters and symbols $, #, @

       $ corresponds to <Esc> key
       # corresponds to <Enter> key
       @ corresponds to <Space> key

          You will choose variant of answer by pressing
          corresponding key, or (if mouse is present)
          by pointing corresponding letter or the word
          "ESC", "ENTER" or "SPACE" on the screen and
          pressing mouse left button.

          ERRORLEVEL will 0 if a first key from list is pressed,
          1 if a second and so on.

       Test at first the greatest value of ERRORLEVEL in Your
       bath files, because of "IF" can get "true" if ERRORLEVEL
       is equal or greater then the test value.

       Bath file example:

       @echo off

       echo We have 4 mouse's drivers:
       echo Genius Mouse      - G
       echo Linear Mouse      - L
       echo MaxCom Mouse      - X
       echo MicroSoft Mouse   - M
       echo none              - SPACE
       echo Quit              - ESC
       echo Press the right letter to install the selected driver
       echo or Space to run AutoCad without mouse or Esc to quit
       rem Here we must ask user about his answer
       cen response:glxm@$
       if errorlevel==5 goto Quit
       if errorlevel==4 goto RunAcad
       if errorlevel==3 goto RunMS
       if errorlevel==2 goto RunMX
       if errorlevel==1 goto RunLM

       rem Here we must install the Genius Mouse
       gmouse
       goto RunAcad
       :RunLM
       rem here we must install the Linear Mouse
       lmouse
       goto RunAcad
       :RunMX
       rem here we must install the MaxCom Mouse
       mouse
       goto RunAcad
       :RunMS       rem here we must install the MicroSoft Mouse
        msmouse
       :RunACAD
       rem here we will use ACAD
       acad
       :Quit




________________________________________________________________

    6) CEN UNLOCK
           Program will set off "Num Lock", "Caps Lock"
           and "Scroll Lock";


________________________________________________________________

    7) CEN REBOOT           Your computer will rebooted.


================================================================

    THIS IS ALL NOW !

  We hope, that the program will be helpful for You  in
  configuring the workspace on Your computer.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  The CEN.COM and its documentation are  copyright (c) ETS
  all rights reserved.  They may not be circulated in any
  incomplete or modified form, nor sold for profit, without
  written permission of the ETS. If you distribute this
  software to others, you are required to distribute the
  ENTIRE package consisting of the following files:

     CEN.COM
     CEN.DOC (this file)

  INDIVIDUAL USE:

     CEN  may be freely used and shared with others. There is no
     required registration fee for non-commercial personal use.
     However, if you find CEN of value, a gift of five dollars or
     any amount would be greatly appreciated.

     INSTITUTIONAL/COMMERCIAL SITE LICENSE:

     Any corporation, institution, government agency or business
     wishing to use CEN in the course of its business must purchase a
     SITE LICENSE.

     Registered ETS's "Polyglossum" users have FREE SITE LICENSE.

     The cost of SITE LICENSE is:
        for 1 up to 10 users/computers     - 5 $ per one;
        for  up to 50  users/computers     - 50 $;
        for  up to 100 users/computers     - 75 $ ;

     Pay for ETS and write for us to get license.

     Pay in USD or FIM:

                  UNION BANK OF FINLAND
                  BRANCH 2400
                  HELSINKI, FINLAND
                  SWIFT-CODE UNITFIHH
                  ACC USD N 240066-8816
                      FIM N 240066-8808
                  ERICA LTD

     Or pay in rubles (by current course):

      / N 467079     . N 161463
           . , : 201791, . 83

     Write for ETS:

     , 127576,  , ᪠ . . 2-, . 170. ⠪ ..
   ( Russia, 127576, Moscow, Ilimskaya st., 2-v, ap.170, Butakov V. )

     Phone:
           voice/fax   : + 7 ( 095 ) 916 3711
           E-Mail      : dict@erika.msk.su



     DISTRIBUTION LICENSE:

     Any corporation, institution, government agency or business
     wishing to include CEN as an integral part of a software and/or
     hardware distribution must purchase a DISTRIBUTION LICENSE.
     Please write for terms.

     COMMERCIAL SALE:

     The sale of CEN for profit, either alone or together with
     other software or hardware, requires a licensing agreement.
     Please write for terms.

     CEN SOURCE CODE:

     The source code for CEN may be available too.
     Please write for terms.
==================================================================
CONTACTS FOR ETS:

 Write for ETS:
     , 127576,  , ᪠ . . 2-, . 170. ⠪ ..
   ( Russia, 127576, Moscow, Ilimskaya st., 2-v, ap.170, Butakov V. )

 Phone:
           voice/fax   : + 7 ( 095 ) 916 3711
           E-Mail      : dict@erika.msk.su
=================================================================


