

                            C E N


                     


                  Copyright (c) by ETS 1995



           ChiWriter,    
     ,          ChiWriter()  
         ,  
    .      AUTOEXEC.BAT,     
          ,        
    ,                
     -  FoxBase  _.    
            
    AUTOEXEC.BAT.         ,
           ChiWriter,
           ChiWriter()    
                .   
                
         .

               
    ChiWriter !           
      .      
          -      
       -  -  -    
       .   Turbo C++ 1.00 
           .      
           !

                  
         ,        
    .        
               BATCH-,
            
         .

                    CEN.COM !

       CEN.COM -    ,     
                   
    ,              
          ,   
      .

          CEN.COM  ,     
               ,      
             ,    
                 
      .    ,   
       ,      
        ERRORLEVEL    1,  
      ERRORLEVEL   0.

          ,  ,        ,
     ,        ,  
        ,        
             , 
        ?    *     .
      ?              
       ,       *    
         .

       :
       CEN        -     

       CEN c:\dos\drivers\mouse.com

       CEN *mouse.*    -      
                           ,   
                              ,
                          -   ,  
                           <mouse.>

        BATCH-:

       @echo off

       rem We will be running 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


           ChiWriter,   
      VEGAINIT,     
       .

              , 
       - .   -  
     TC ( Turbo C ),    :

       @echo off

       cen *mouse.* >nul
       if errorlevel==1 goto NoTC

       tc
       goto TheEnd

       :NoTC
       echo This programm do'nt work with THIS MOUSE !!!

       :TheEnd
       rem The End

       ,    ,      
       ,        
        -    
        AutoCad:

       @echo off

       cen *mouse.* >nul
       if errorlevel==1 goto RunACAD

       echo You must load mouse before run this !
       goto TheEnd

       :RunACAD
       c:\autodesk\acad10\acad

       :TheEnd
       rem Bye ...

       ,         
         .   
               .

              (        
    - ),    ,   
    ,        ,   
    .    :  ChiWriter,  SideKick,
           .

                  
    ,    ,   
            .    CEN
         .

            ,    
                 ,
        CEN .  
                    
    .    SAVE  RESTORE.

          SAVE      CEN 
                    
       .    
    CEN             
    -     .    
         ,        
    ,    .

                    
    ,   CEN      RESTORE.
                    
        .      
              CEN SAVE,   
      .

         CEN    (    SAVE 
    RESTORE)   ,       
    ,      CEN             
            ,    
    .      ,     CEN 
          SAVE        
        .

                     -
     CEN              
    .

       : CEN SAVE    -     
                CEN RESTORE -     

        BATCH-:
           ChiWriter.   
        ,     ChiWriter,  
                    
      . ,  ChiWriter 
      D:    \CWR,       C:  
     \USER.   ,   ,  
     PATH    ,      
    BATCH-:

       @echo off

       rem We will save current disk & directory
       cen save >nul

       rem Here we can change disk & directory
       d:
       cd \cwr

       rem After this we can start ChiWriter
       vegainit -E
       cw

       rem Here we already closed ChiWrter's session
       rem and will change disk & directory to the previouses
       cen restore >nul

                CEN 
           
      .      
    .

                
      CEN.      
              
              ,  ,
            ,      .
    ,         AutoCad        
          
    ,       
    ,            ChiWriter()   
      ,           
      BATCH-.         
    ,    .

              CEN    
    RESPONCE:.       CEN       
    RESPONCE:           
    ,         CEN.  
       ,     CEN.

        CEN  RESPONCE:ABCDE -     
         A, B, C, D  E.  
        A     ERRORLEVEL  0,  
     B ERRORLEVEL   1,  C - 2   ..

                  
    MS-DOS -        ERRORLEVEL  
       ,      
        ,   ERRORLEVEL
      ,  .

        BATCH-:
                     AutoCad  
        .   
    ,         4    -  MSMOUSE - 
    MicroSoft Mouse,  GMOUSE -   Genius  Mouse,  LMOUSE  -
     Linear Mouse  MOUSE -  MaxCom Mouse.

       @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 N to run AutoCad without mouse or Q to quit

       rem Here we must ask user about his answer
       cen responce: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


           CEN     
     ,       ESC, ENTER 
    SPACE.               
        $  -  ESC,   # - 
    ENTER /  @ -  SPACE.

                   RESPONCE:   -
            .     
            ESC,  SPACE 
    ENTER    .

                   
           -  REBOOT     
      , HELP    
    ,   UNLOCK        NumLock,  CapsLock  
    ScrollLock,   MOUSE     
         .

          CEN MOUSE  ERRORLEVEL 
     0,   ,     ,
        .    ,  
          ,    
           ,    
      .      
      -      
        CONFIG.SYS       
    ,         ,       
    .


       : CEN REBOOT   -   
                CEN HELP     -   
                CEN UNLOCK   -  
                CEN MOUSE    -    

                   
     CEN    BATCH-.        
       ChiWriter        ,
      VEGAINIT   .

       @echo off

       rem We are saving the current disk & directory
       cen save >nul

       rem Here we may change disk & directory to the ChiWriter's
       rem disk & directory
       d:
       cd \cwr

       rem Search the VEGAINIT in RAM ...
       cen *\vegainit.* >nul

       if errorlevel==1 goto vegaok

       rem VEGAINIT is'nt found - run VEGAINIT for EGA monitor
       vegainit -E

       :vegaok
       rem Here the user can select his answer

       echo If you want to run  ChiWriter in
       echo    LOW-resolution mode        - L
       echo    HIGH-resolution mode       - H
       echo    do'nt change mode          - N

       rem Ask user ...
       cen responce:lhn >nul

       rem If was be pressed key N, then errorlevel will be 2
       rem if was be pressed key H, then errorlevel will be 1
       rem else,if was be pressed key L, the errorlevel will be 0

       if errorlevel==2 goto RunCW
       if errorlevel==1 goto RunHigh

       rem Here we must switch ChiWriter to the Low-resolution
       rem mode
       call switch lo
       goto RunCW

       :RunHigh
       rem Here we must switch ChiWriter to the High-resolution
       rem mode
       call switch hi

       :RunCW
       rem Here we will use ChiWriter in selected mode
       cw

       rem Here we must restore saved disk & directory
       cen restore >nul


        ,      
      ,         
                    
      !


    

    * * * * * * * * * * * *         * * * * * * * * * * * *

     CEN     .
           
          CEN.ENG 
    ..\ENGLISH\CEN_DOS.TXT


