home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / 4dos / 4dos.doc < prev    next >
Text File  |  1993-12-16  |  221KB  |  4,378 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                           44
  9.                          44
  10.                         44      DDDDDDD        OOOOO        SSSSSS
  11.                        44       DDDDDDDD      OOOOOOO      SSSSSSSS
  12.                       44  44    DD     DD    OO     OO    SS
  13.                      44   44    DD     DD    OO     OO    SS
  14.                     44    44    DD     DD    OO     OO     SSSSSS
  15.                    444444444    DD     DD    OO     OO      SSSSSS
  16.                     44444444    DD     DD    OO     OO           SS
  17.                           44    DD     DD    OO     OO           SS
  18.                           44    DDDDDDDD      OOOOOOO     SSSSSSSS
  19.                           44    DDDDDDD        OOOOO       SSSSSS
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.                                       Version 5.0
  27.  
  28.  
  29.  
  30.  
  31.                           Introduction and Installation Guide
  32.  
  33.  
  34.  
  35.  
  36.                                       Developed By
  37.                                 Rex Conn and Tom Rawson
  38.  
  39.                                     Documentation By
  40.                        Hardin Brothers, Tom Rawson, and Rex Conn
  41.  
  42.  
  43.  
  44.                                       Published By
  45.  
  46.                                     JP Software Inc.
  47.                                      P.O. Box 1470
  48.                                 East Arlington, MA 02174
  49.                                          U.S.A.
  50.  
  51.                                      (617) 646-3975
  52.                                    fax (617) 646-0904
  53.  
  54.  
  55.  
  56.  
  57.  
  58.                                   ACKNOWLEDGMENTS
  59.  
  60.  
  61.  
  62.              We couldn't produce a product like 4DOS without the dedication
  63.              and quality work of many people.  Our thanks to:
  64.  
  65.                   JP Software Staff:  Mike Bessy, Helen Coyne, Ellen Stone,
  66.                   Marcella Turner, Misty White.
  67.  
  68.                   Online Support:  Brian Miller and Tess Heder of Channel 1
  69.                   BBS; Don Watkins of CompuServe's IBMNET.
  70.  
  71.                   Help System:  Scott McGrath and Ross Neilson Wentworth.
  72.  
  73.                   Beta Test Support:  David Moskowitz, Guy Scharf, and
  74.                   Martin Schiff, of CompuServe's CONSULT forum.
  75.  
  76.                   Beta Testers:  We can't list all of our beta testers
  77.                   here!  A special thanks to all of you who helped make
  78.                   4DOS elegant, reliable, and friendly.
  79.  
  80.  
  81.              The following tools are used in creating and maintaining 4DOS:
  82.  
  83.                   Compilers:        Microsoft C, Microsoft Macro Assembler,
  84.                                     Borland Turbo Pascal
  85.                   Libraries:        Spontaneous Assembly (Base Two
  86.                                     Development), Turbo Professional (Turbo
  87.                                     Power Software)
  88.                   Editors:          Edix (Emerging Technology), Brief
  89.                                     (Solution Systems)
  90.                   Debuggers:        Periscope (The Periscope Company), Soft-
  91.                                     ICE (Nu-Mega Technologies)
  92.                   Version Control:  PVCS (Sage Software)
  93.                   Documentation:    Microsoft Word for Windows with Adobe
  94.                                     Type Manager
  95.  
  96.              Program and Documentation Copyright c 1988 - 1993, JP Software
  97.              Inc., All Rights Reserved.  4DOS is a registered trademark and
  98.              4OS2 and JP Software are trademarks of JP Software Inc.  Other
  99.              product and company names are trademarks of their respective
  100.              owners.
  101.  
  102.                                                                       12-93
  103.  
  104.                                                                    CONTENTS
  105.         -------------------------------------------------------------------
  106.  
  107.  
  108.         CONTENTS
  109.  
  110.  
  111.         Introduction...............................................1
  112.             How to Use This Manual.................................2
  113.             Customer Service and Technical Support.................3
  114.  
  115.         Chapter 1 / Installation...................................4
  116.             Preparing for Installation Under DOS...................4
  117.             Preparing for Installation Under OS/2..................5
  118.             Automated Installation.................................6
  119.             Manual Installation....................................7
  120.             Uninstalling 4DOS......................................8
  121.  
  122.         Chapter 2 / Configuration.................................10
  123.             Configuration Files...................................10
  124.             Setting Up CONFIG.SYS.................................11
  125.                 4DOS and Multiple-Configuration Utilities.........14
  126.                 4DOS and DOS 2....................................14
  127.             Startup Options for Secondary Shells..................15
  128.             Using AUTOEXEC.BAT, 4START, and 4EXIT.................16
  129.             COMSPEC and the COMSPEC Path..........................17
  130.             4DOS Swapping Methods.................................18
  131.             4DOS Help.............................................19
  132.                 Configuring the Help System.......................21
  133.  
  134.         Chapter 3 / 4DOS and Your Hardware and Software...........23
  135.             The CPU...............................................23
  136.             Memory................................................24
  137.                 Upper Memory Blocks (UMBs)........................27
  138.             Video.................................................29
  139.             Hard Drives and Floppy Disks..........................31
  140.             4DOS and DOS..........................................32
  141.                 Menus and SET Commands in CONFIG.SYS..............32
  142.                 Novell DOS / DR DOS...............................33
  143.             Using 4DOS with Task Switchers and Multitaskers.......34
  144.                 Creating a 4DOS Window............................35
  145.                 Parameters for 4DOS Windows.......................35
  146.                 Multitasking and KEYSTACK.........................37
  147.                 Multitasking and Disk Swapping....................37
  148.                 4DOS and Microsoft Windows........................37
  149.             Using 4DOS on a Network...............................39
  150.                 4DOS and Novell Netware...........................40
  151.  
  152.         Chapter 4 / Using 4DOS Under OS/2.........................42
  153.             OS/2 Version 1.x......................................43
  154.             OS/2 Version 2.x......................................43
  155.                 Settings for DOS Sessions.........................44
  156.                 Configuring DOS Sessions for 4DOS.................45
  157.  
  158.         -------------------------------------------------------------------
  159.         Copr. 1993 JP Software Inc.    4DOS Intro. & Installation Guide / i
  160.  
  161.                                                                    CONTENTS
  162.         -------------------------------------------------------------------
  163.  
  164.                 4DOS.INI..........................................47
  165.                 AUTOEXEC.BAT, 4START, and 4EXIT...................48
  166.             "Temporary" VDMs......................................48
  167.             Configuring 4DOS for Dual Boot and Boot Manager.......49
  168.                 CONFIG.SYS........................................50
  169.                 AUTOEXEC.BAT......................................50
  170.                 4DOS.INI, 4START, and 4EXIT.......................51
  171.  
  172.         Appendix A / Solving Software Compatibility Problems......53
  173.             Path Length...........................................54
  174.             Environment Size......................................55
  175.             Testing for Interactions..............................55
  176.             Memory Allocation Conflicts...........................57
  177.                 Memory Allocation and Microsoft Windows...........58
  178.             Advanced Configuration Options........................59
  179.  
  180.         Appendix B / Technical Information........................61
  181.             Detecting 4DOS........................................61
  182.             Placing Keystrokes Into the Keystack..................62
  183.             Writing Installable Commands..........................63
  184.             Using DESCRIPT.ION....................................64
  185.             Interrupt 2E..........................................65
  186.  
  187.         Index.....................................................68
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.         -------------------------------------------------------------------
  216.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / ii
  217.  
  218.                                                                INTRODUCTION
  219.         -------------------------------------------------------------------
  220.  
  221.  
  222.         INTRODUCTION
  223.  
  224.  
  225.         Welcome, and thanks for purchasing 4DOS!
  226.  
  227.         We started developing 4DOS when we realized that our computers
  228.         could be a lot more powerful and a lot more helpful than they were.
  229.         Whether you are a computer novice or an experienced power user, we
  230.         think that 4DOS will help you get the most out of your IBM PC or
  231.         compatible computer.
  232.  
  233.         Technically, 4DOS is a command interpreter or "DOS Shell."  That
  234.         means that it reacts to the commands you type at the C:\> prompt.
  235.         We've designed 4DOS so that you don't have to change your computing
  236.         habits or unlearn anything to use it.  If you know how to display a
  237.         directory, copy a file, or start an application program, you
  238.         already know how to use 4DOS.  4DOS understands all of the commands
  239.         you know and adds to them.  Its purpose is to make DOS friendlier,
  240.         easier to use, and much more powerful and versatile, without
  241.         requiring you to use or learn a new program, a new set of commands,
  242.         or a new style of work.
  243.  
  244.         You can use 4DOS with all versions of MS-DOS and PC-DOS from 2.0
  245.         through 6.2 and above.  You can also use it with all versions of
  246.         Novell DOS and DR DOS (an older name for the same product) from 3.4
  247.         through 7.0 and above, and in DOS sessions started under OS/2 1.x
  248.         or 2.x and Windows 3.0 or 3.1.
  249.  
  250.         Once you have 4DOS installed, you can learn its new features at
  251.         your own pace.  It has more than 50 new commands and hundreds of
  252.         enhanced features, but you don't have to learn them all at once.
  253.         Relax, enjoy 4DOS's power, and browse through the manual
  254.         occasionally.  Press the F1 key whenever you need help.  4DOS will
  255.         soon become an essential part of your computer, and you'll wonder
  256.         how you ever got along without it.
  257.  
  258.         If you want to take 4DOS for a spin without performing a complete
  259.         installation, see the separate Guided Tour documentation.
  260.  
  261.         We are constantly working to improve 4DOS.  If you have suggestions
  262.         for features or commands that you think we should include in the
  263.         next version, or any other way we could improve our product, please
  264.         let us know.  Many of the improvements in this version of 4DOS were
  265.         suggested by our users, and while we can't promise to include every
  266.         suggested feature, we really do appreciate and consider your
  267.         comments.
  268.  
  269.         If you use OS/2 or Windows NT, JP Software offers 4OS2, a
  270.         replacement for the OS/2 command processor, and 4DOS for Windows
  271.  
  272.         -------------------------------------------------------------------
  273.         Copr. 1993 JP Software Inc.    4DOS Intro. & Installation Guide / 1
  274.  
  275.                                                                INTRODUCTION
  276.         -------------------------------------------------------------------
  277.  
  278.         NT, which is a replacement for the Windows NT command processor.
  279.         These products provide most of the same commands and features
  280.         available in 4DOS, plus several additional commands and new
  281.         features for OS/2 and Windows NT.  You can use these products to
  282.         maintain a common working environment and run the same batch files
  283.         under DOS, OS/2, and Windows NT.  4OS2 and 4DOS for Windows NT are
  284.         available at a discounted price for 4DOS users.  Contact JP
  285.         Software or your dealer for more information.
  286.  
  287.  
  288.         How to Use This Manual
  289.  
  290.              This manual is only one part of the documentation that you
  291.              will need for 4DOS.  It introduces the product and will help
  292.              you install 4DOS correctly on your computer.  It will also
  293.              help you understand some of the terms and concepts that you
  294.              will need to know to get the most from 4DOS, and give you
  295.              specific information on using 4DOS in your particular
  296.              environment (for example under DOS, Windows, or OS/2).
  297.  
  298.              The second part of our documentation is the separate Reference
  299.              Manual.  It contains complete information about the commands
  300.              and features of 4DOS, plus its sister programs, 4OS2 and 4DOS
  301.              for Windows NT.
  302.  
  303.              You should start with this introductory manual whether you are
  304.              new to 4DOS or you are upgrading from a previous version.
  305.              Once you have successfully installed 4DOS, you can move back
  306.              and forth between this manual and the Reference Manual.
  307.  
  308.              For the sake of clarity, we have chosen not to indicate each
  309.              of the hundreds of places in this manual where you can refer
  310.              to the Reference Manual for additional information.  If you
  311.              see a reference here to a 4DOS command, the initialization
  312.              file 4DOS.INI, or any 4DOS feature, you can be sure that
  313.              detailed information on that topic is available in the
  314.              Reference Manual.  In particular, this manual often refers to
  315.              directives in 4DOS.INI, which are covered in detail in Chapter
  316.              5 of the Reference Manual.
  317.  
  318.              4DOS also includes complete online help for all 4DOS and
  319.              standard DOS commands.  The online help provides much of the
  320.              same information that is available in the Reference Manual,
  321.              but in an electronic form which you can access quickly.  See
  322.              page 19 for more details on using the online help.
  323.  
  324.              Files distributed with 4DOS cover important additional
  325.              information beyond what's included in the manuals.  README.DOC
  326.              contains general notes, highlights of the latest release, and
  327.              brief installation instructions for those upgrading from a
  328.  
  329.         -------------------------------------------------------------------
  330.         Copr. 1993 JP Software Inc.    4DOS Intro. & Installation Guide / 2
  331.  
  332.                                                                INTRODUCTION
  333.         -------------------------------------------------------------------
  334.  
  335.              downloaded copy.  MANMOD.DOC covers changes or corrections in
  336.              the manuals, if any, and UPDATxxx.DOC contains detailed
  337.              information for users with older versions on what has changed
  338.              in the latest release ("xxx" is the version number).
  339.              APPNOTES.DOC contains application notes for a variety of other
  340.              software packages to help you use those packages with 4DOS.
  341.  
  342.              You will likely find some parts of the documentation too
  343.              simple or too technical for your tastes.  If so, feel free to
  344.              skip to the next part of the manual that is more to your
  345.              liking.  You can use almost every feature of 4DOS without
  346.              having to worry about other features or commands.
  347.  
  348.              As you read the documentation, you will occasionally see an
  349.              exclamation point [!] next to a paragraph.  The exclamation
  350.              point means that that paragraph contains a caution or warning
  351.              you should observe when using the feature it discusses.
  352.  
  353.              You will also see the symbol ## next to certain paragraphs.
  354.              This indicates an in-depth discussion or a more advanced topic
  355.              which you can skip if you wish to stick with the basics.  Come
  356.              back to this topic later for more details, or if you're having
  357.              trouble with the particular issue it discusses.  If you see
  358.              the ## next to a section heading, it means the entire section
  359.              contains such information.
  360.  
  361.              You may find the information in such marked sections useful
  362.              even if you're relatively new to computers or to our products.
  363.              However, you can also skip the marked section and still
  364.              understand and use the basic topic of the larger section
  365.              you're reading.
  366.  
  367.  
  368.         Customer Service and Technical Support
  369.  
  370.              Technical support for 4DOS is available via public electronic
  371.              support conferences, private electronic mail, telephone, fax,
  372.              and mail.  For complete details, including a listing of
  373.              electronic support conferences, see your Reference Manual.
  374.  
  375.              Customer service is always available through the telephone and
  376.              fax numbers listed on the title page of this manual.  See your
  377.              Reference manual for electronic mail addresses for our Sales
  378.              and Customer Service departments.
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.         -------------------------------------------------------------------
  387.         Copr. 1993 JP Software Inc.    4DOS Intro. & Installation Guide / 3
  388.  
  389.                                                    CHAPTER 1 / INSTALLATION
  390.         -------------------------------------------------------------------
  391.  
  392.  
  393.         CHAPTER 1 / INSTALLATION
  394.  
  395.  
  396.         You can install your copy of 4DOS automatically or manually.
  397.  
  398.         If you prefer an automated installation, our installation software
  399.         will set up 4DOS for you quickly and with very little intervention
  400.         on your part, other than answering the questions on your screen.
  401.  
  402.         If you prefer to install 4DOS yourself, you'll need to use the
  403.         installation software to copy the 4DOS files to your disk.  You can
  404.         then modify your system manually as explained below.
  405.  
  406.         If you're installing a downloaded update to 4DOS, see the
  407.         instructions under Manual Installation on page 7.
  408.  
  409.         (If you're using DOS 2.x, you must use manual installation.  The
  410.         automated installation software cannot modify CONFIG.SYS for you
  411.         under DOS 2.  See page 14 for additional details.)
  412.  
  413.         No matter which method you choose, you'll find that 4DOS's
  414.         installation software is very well-behaved.  It won't modify or
  415.         erase any existing files, including CONFIG.SYS and AUTOEXEC.BAT,
  416.         without asking you, and it takes a very straightforward, step by
  417.         step approach.
  418.  
  419.         The installation software always prompts you for the directory to
  420.         use for your 4DOS files, and will create a new directory if
  421.         necessary.  If you are upgrading from a previous version of 4DOS,
  422.         use a new directory for the new version, rather than overwriting
  423.         your existing files.  Transfer any necessary configuration files
  424.         from the old directory (e.g. 4DOS.INI, 4START, etc.), then remove
  425.         the old directory once the new version is up and running.
  426.  
  427.  
  428.         Preparing for Installation Under DOS
  429.  
  430.              If you're running DOS (or DOS plus Windows), you should make a
  431.              bootable system diskette before you install 4DOS (or any other
  432.              software, for that matter).  This allows you to recover in
  433.              case of a power failure or other interruption during the
  434.              installation process.
  435.  
  436.              To make the bootable floppy disk, put a fresh diskette in
  437.              drive A and then type:
  438.  
  439.                   format a: /s
  440.  
  441.  
  442.  
  443.         -------------------------------------------------------------------
  444.         Copr. 1993 JP Software Inc.    4DOS Intro. & Installation Guide / 4
  445.  
  446.                                                    CHAPTER 1 / INSTALLATION
  447.         -------------------------------------------------------------------
  448.  
  449.              The FORMAT command will take a few minutes to prepare the
  450.              floppy diskette, and will then copy your system files to drive
  451.              A.
  452.  
  453.              Once the process is complete, you should test your bootable
  454.              floppy by leaving it in drive A and simultaneously pressing
  455.              the Ctrl, Alt, and Del keys to make sure your system will boot
  456.              up properly.  Once you can boot from a floppy disk and access
  457.              the configuration files on your hard disk, put the floppy away
  458.              in a safe place and reboot your computer normally.
  459.  
  460.              If you use compression software on your hard disk, you may not
  461.              be able to access the hard disk from a bootable floppy unless
  462.              you copy the appropriate device drivers and other software,
  463.              plus a version of your CONFIG.SYS and AUTOEXEC.BAT files, to
  464.              the floppy disk.  See your compression software documentation
  465.              for details about creating a bootable floppy disk.
  466.  
  467.  
  468.         Preparing for Installation Under OS/2
  469.  
  470.              If you are running OS/2, a bootable floppy disk is not
  471.              required.  To begin the installation simply start a DOS
  472.              command line session and follow the automated or manual
  473.              installation instructions below.
  474.  
  475.              If you also have our OS/2 command processor, 4OS2, do not
  476.              install 4DOS in the same directory as 4OS2.  Some file names
  477.              (for example README.DOC) are the same in both products, and
  478.              the files should be kept separate to avoid confusion later.
  479.  
  480.              If you use OS/2's Dual Boot or Boot Manager facilities to
  481.              switch between DOS and OS/2, your system has two sets of
  482.              CONFIG.SYS and AUTOEXEC.BAT files:  one for DOS and one for
  483.              OS/2.  In most cases, you'll want to modify both sets, so that
  484.              4DOS is available in both environments.  If you use automated
  485.              installation, the installation software modifies only one set:
  486.              the one for the operating system you are running at the time
  487.              of installation.
  488.  
  489.              After installation, you can modify either set of configuration
  490.              files manually using the instructions under Manual
  491.              Installation on page 7.  If you use Boot Manager, you can
  492.              instead restart the installation software and select the
  493.              "Modify Startup Files" option on the main menu to modify the
  494.              second set of startup files.  If you use this approach, be
  495.              sure to tell the installation software the proper boot drive
  496.              for the set of configuration files you wish to modify.
  497.  
  498.  
  499.  
  500.         -------------------------------------------------------------------
  501.         Copr. 1993 JP Software Inc.    4DOS Intro. & Installation Guide / 5
  502.  
  503.                                                    CHAPTER 1 / INSTALLATION
  504.         -------------------------------------------------------------------
  505.  
  506.              See Chapter 4 on page 42 for more details on using 4DOS with
  507.              OS/2.
  508.  
  509.  
  510.         Automated Installation
  511.  
  512.              To begin the automated installation process, put the
  513.              distribution diskette into drive A.  You can use drive B if
  514.              you prefer, in which case you should substitute "b" for "a" in
  515.              the instructions below.
  516.  
  517.              One of the files on the distribution diskette, README.1ST,
  518.              contains information that you should read before you install
  519.              4DOS on your computer.  Type:
  520.  
  521.                   type a:readme.1st | more
  522.  
  523.              to view the file.  If you want to print a copy of the file,
  524.              type:
  525.  
  526.                   copy a:readme.1st prn
  527.  
  528.              After checking README.1ST, you can start the installation
  529.              process.  Type:
  530.  
  531.                   a:install
  532.  
  533.              and press the Enter key.
  534.  
  535.              Once the installation program has started, just follow the
  536.              instructions on the screen and 4DOS will install itself on
  537.              your system.
  538.  
  539.              The installation program will ask whether you want to perform
  540.              a complete installation, perform a partial installation in
  541.              order to run the Guided Tour, or retrieve individual files
  542.              from the 4DOS library.  Choose a full installation to install
  543.              4DOS on your system, and modify CONFIG.SYS and AUTOEXEC.BAT
  544.              (you will be prompted for permission before these files are
  545.              modified).  Choose the Tour option if you want to see what
  546.              4DOS can do before you install it permanently.
  547.  
  548.              If you elect to perform a full installation, reboot your
  549.              computer when the installation program is done.  You will then
  550.              have all the power of 4DOS available to you.
  551.  
  552.         ##   If you use a utility which allows multiple configurations in
  553.              your DOS CONFIG.SYS file, the automatic installation software
  554.              may not be able to modify CONFIG.SYS for you, even if you give
  555.              it permission to do so.  In this case you will see a message
  556.  
  557.         -------------------------------------------------------------------
  558.         Copr. 1993 JP Software Inc.    4DOS Intro. & Installation Guide / 6
  559.  
  560.                                                    CHAPTER 1 / INSTALLATION
  561.         -------------------------------------------------------------------
  562.  
  563.              explaining the problem during installation, and you will need
  564.              to follow the Manual Installation instructions below to modify
  565.              CONFIG.SYS yourself.  See page 14 for additional notes about
  566.              using 4DOS with these utilities.
  567.  
  568.              You can halt the installation process at any time by pressing
  569.              Ctrl-X (hold down the Ctrl key and then press "X").
  570.  
  571.  
  572.         ##  Manual Installation
  573.  
  574.              The 4DOS files are contained in a special library file on the
  575.              distribution diskette.  You cannot simply copy files from the
  576.              diskette onto your system.  You must use the installation
  577.              program to extract the 4DOS files if you want to perform a
  578.              manual installation, or if you need to replace a damaged 4DOS
  579.              file on your hard disk.
  580.  
  581.              If you want to install 4DOS manually, first start the
  582.              automatic installation program using the instructions above.
  583.              Select the Extract all files option and extract the 4DOS files
  584.              onto your hard disk (be sure to place the files in their own
  585.              directory).
  586.  
  587.              If you are installing 4DOS on floppy disks, you may not be
  588.              able to use the Extract all files option because the files may
  589.              not fit on a single diskette.  Select Copy individual files
  590.              instead, and repeat the process two or more times to copy the
  591.              files to separate diskettes.  If possible, you should copy
  592.              4DOS.COM, KSTACK.COM, 4HELP.EXE, and 4DOS.HLP to a single
  593.              diskette, because these are the files required to operate 4DOS
  594.              with all of its features.  If these files do not fit on one
  595.              diskette, copy 4DOS.COM and KSTACK.COM to one disk and
  596.              4HELP.EXE and 4DOS.HLP to another.
  597.  
  598.              If you're installing a downloaded update to 4DOS, you will not
  599.              have an INSTALL program.  Instead, use the appropriate
  600.              decompression program (for example, PKUNZIP) to extract the
  601.              files from your download into a new directory.  Then follow
  602.              the instructions below to complete your installation.  Be sure
  603.              to check the README.DOC file for any additional update
  604.              instructions.
  605.  
  606.              Once you've extracted the files, you can go through the Guided
  607.              Tour if you want to try 4DOS before completing the
  608.              installation (see the separate Guided Tour documentation).
  609.  
  610.              When you're ready to finish the installation process, all you
  611.              need to do is add one line to your DOS or OS/2 CONFIG.SYS file
  612.  
  613.  
  614.         -------------------------------------------------------------------
  615.         Copr. 1993 JP Software Inc.    4DOS Intro. & Installation Guide / 7
  616.  
  617.                                                    CHAPTER 1 / INSTALLATION
  618.         -------------------------------------------------------------------
  619.  
  620.              (before modifying the DOS CONFIG.SYS file, be sure you have a
  621.              bootable floppy disk as discussed on page 4):
  622.  
  623.                   SHELL=d:\path\4DOS.COM d:\path /P
  624.  
  625.              "d:\path" means the drive and directory where your 4DOS files
  626.              are stored.  The second "d:\path" on the SHELL= line sets the
  627.              COMSPEC path (see page 17) and can be left out if 4DOS.COM is
  628.              in the root directory of your boot drive.  Be sure to delete
  629.              or REMark out any old SHELL= line for COMMAND.COM after you
  630.              add the new SHELL= line for 4DOS.  Once you have 4DOS up and
  631.              running, see page 11 for additional options you can use on the
  632.              SHELL= line.
  633.  
  634.              If you are running 4DOS under OS/2, change CONFIG.SYS as
  635.              described above.  Once you reboot, 4DOS will be used
  636.              automatically for all newly-created DOS objects on your
  637.              desktop, and for all DOS objects which use the default
  638.              DOS_SHELL settings.  See page 42 for more details on
  639.              configuring OS/2 DOS sessions to use 4DOS.
  640.  
  641.              Next, add the following line to your AUTOEXEC.BAT file:
  642.  
  643.                   d:\path\KSTACK.COM
  644.  
  645.              where "d:\path" is the drive and directory where your 4DOS
  646.              files are stored.  The same line can be used for DOS and for
  647.              OS/2 DOS sessions.
  648.  
  649.              When you've finished modifying CONFIG.SYS and AUTOEXEC.BAT,
  650.              reboot your system to start 4DOS.  For additional details on
  651.              setting up the SHELL= line and AUTOEXEC.BAT, see Chapter 2 /
  652.              Configuration (page 10).  See your Reference Manual for
  653.              information on the 4DOS.INI file, which controls 4DOS
  654.              configuration.
  655.  
  656.         ##   If you use a utility which allows multiple configurations in
  657.              your DOS CONFIG.SYS file, see page 14 for additional notes on
  658.              configuring 4DOS properly on your system.
  659.  
  660.  
  661.         ##  Uninstalling 4DOS
  662.  
  663.              We don't expect you to have any trouble using 4DOS, but we
  664.              know some people feel more comfortable knowing how to
  665.              uninstall a product as well as install it.  Or, you may need
  666.              to remove 4DOS from one system if you are moving it to another
  667.              system.
  668.  
  669.  
  670.  
  671.         -------------------------------------------------------------------
  672.         Copr. 1993 JP Software Inc.    4DOS Intro. & Installation Guide / 8
  673.  
  674.                                                    CHAPTER 1 / INSTALLATION
  675.         -------------------------------------------------------------------
  676.  
  677.              To temporarily remove 4DOS from your system, first find the
  678.              location of COMMAND.COM on your disk (for example, in the root
  679.              directory, or the DOS directory).  Use your editor to edit
  680.              CONFIG.SYS (before modifying the DOS CONFIG.SYS file be sure
  681.              you have a bootable floppy disk as discussed on page 4).
  682.  
  683.              Look for the line which begins with SHELL=, and insert the
  684.              characters "REM " at the beginning of the line.  This converts
  685.              the line into a "remark" or comment.  (If you are using DOS 3
  686.              or below, REMarks are not recognized in CONFIG.SYS, so the
  687.              changed lines will produce a harmless "Unrecognized command"
  688.              error when the system boots.)  Next, add a new line like this:
  689.  
  690.                   SHELL=d:\path\COMMAND.COM /P
  691.  
  692.              where "d:\path" is the drive and directory for COMMAND.COM.
  693.              If you were previously running COMMAND.COM with a /E:nnnn
  694.              switch to set the size of your environment, you should add it
  695.              to this line as well.
  696.  
  697.              After CONFIG.SYS has been modified, edit your AUTOEXEC.BAT
  698.              file to remove any changes made to accommodate 4DOS.  Look for
  699.              a command beginning SET COMSPEC= and another which loads the
  700.              4DOS file KSTACK.COM.  The SET COMSPEC command will not be
  701.              present on most systems.  If it's there, change it to read:
  702.  
  703.                   SET COMSPEC=d:\path\COMMAND.COM
  704.  
  705.              where "d:\path" is replaced by the correct drive and directory
  706.              for COMMAND.COM.  Then add "REM " in front of  the KSTACK.COM
  707.              command to convert it to a comment.
  708.  
  709.              If you wish, you can also look for the PATH command, and
  710.              remove the 4DOS directory from the directories listed there.
  711.              However, there's probably no reason to do so unless you're
  712.              permanently removing 4DOS from your system.
  713.  
  714.              Now reboot your system, and you should be back up and running
  715.              under COMMAND.COM.  To switch back to 4DOS, edit your
  716.              CONFIG.SYS file again to remove the REMs on your 4DOS lines
  717.              and put one on your COMMAND.COM line instead, remove any SET
  718.              COMSPEC command in AUTOEXEC.BAT, and you can boot with 4DOS
  719.              again.
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.         -------------------------------------------------------------------
  729.         Copr. 1993 JP Software Inc.    4DOS Intro. & Installation Guide / 9
  730.  
  731.                                                   CHAPTER 2 / CONFIGURATION
  732.         -------------------------------------------------------------------
  733.  
  734.  
  735.         CHAPTER 2 / CONFIGURATION
  736.  
  737.  
  738.         This chapter explains how you can tune 4DOS to make it as efficient
  739.         and as useful as possible in your computing environment.  Nearly
  740.         everything in this chapter is for advanced users and those with
  741.         unusual needs.  If 4DOS works the way you want it to after the
  742.         automatic installation, you can skip this chapter.  You may,
  743.         however, want to skim this material to see what options are
  744.         available.
  745.  
  746.  
  747.         Configuration Files
  748.  
  749.              4DOS uses or is affected by five configuration files.  Two are
  750.              for general DOS configuration; the other three are unique to
  751.              4DOS.  The general DOS files are CONFIG.SYS and AUTOEXEC.BAT.
  752.              The specialized 4DOS files are called 4START, 4EXIT, and
  753.              4DOS.INI.
  754.  
  755.              CONFIG.SYS is discussed below.  AUTOEXEC.BAT, 4START and 4EXIT
  756.              are discussed briefly below, and in Chapter 4 / Aliases and
  757.              Batch Files in the Reference Manual.  4DOS.INI is discussed in
  758.              Chapter 5 / Configuration in the Reference Manual.
  759.  
  760.         !    Anytime you change a configuration file, a typographical
  761.              mistake or other error could make your system lock up or run
  762.              erratically.  Before you make any changes to any of these
  763.              files, we strongly urge you to take some precautions.  (These
  764.              precautions are for DOS users.  Under OS/2 they can be
  765.              helpful, but are not required, because problems with the
  766.              startup files are not as likely to keep the system from
  767.              booting and prevent you from editing the incorrect file.)
  768.  
  769.              First, create a bootable floppy disk (see page 4).  Second,
  770.              make a backup copy of all five configuration files, giving the
  771.              backup copies a different extension than the originals (for
  772.              example .SAV).  Copy these backup files to your boot-up floppy
  773.              for safekeeping.
  774.  
  775.              With these precautions, if something goes wrong, you will be
  776.              able to boot with your floppy disk and copy the files back to
  777.              their original names.  You'll only have to spend a few minutes
  778.              recovering your system.  You should follow the same
  779.              precautions each time you install a new application program
  780.              that changes your DOS or 4DOS configuration files.
  781.  
  782.  
  783.  
  784.  
  785.         -------------------------------------------------------------------
  786.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 10
  787.  
  788.                                                   CHAPTER 2 / CONFIGURATION
  789.         -------------------------------------------------------------------
  790.  
  791.         Setting Up CONFIG.SYS
  792.  
  793.              The DOS CONFIG.SYS file contains instructions for DOS to
  794.              execute before it loads a command processor.  The OS/2
  795.              CONFIG.SYS file contains similar startup instructions for
  796.              OS/2.  Only one line in the CONFIG.SYS file affects 4DOS.  It
  797.              tells the operating system to use 4DOS as the DOS command
  798.              processor instead of COMMAND.COM.  The format of this line is:
  799.  
  800.                   SHELL=d:\path\4DOS.COM [d:\path] [@d:\path\inifile]
  801.                        [//iniline]... [/D] [/E:nnnn] [/F] [/L] [/LA] [/LH]
  802.                        [/Y] [/P[:filename]] [[/K]command]
  803.  
  804.              SHELL= identifies this line as defining the command processor
  805.              that DOS will load after it finishes executing CONFIG.SYS, or
  806.              that OS/2 will load when a DOS session is started.
  807.  
  808.              Replace the first "d:\path\" (immediately after SHELL=) with
  809.              the 4DOS drive and directory.  If you're using DOS, the drive
  810.              and path must be correct or your system won't boot (and you'll
  811.              be very happy that you made the boot-up floppy we suggested).
  812.  
  813.              The remainder of the items on this line are optional.  If they
  814.              are used, you should not include the square brackets.  In the
  815.              descriptions below, "d:" means a drive letter and "\path"
  816.              means a subdirectory name.
  817.  
  818.                   d:\path:  This is the second d:\path above (not the one
  819.                   immediately after SHELL=).  It sets the drive and
  820.                   directory where 4DOS is stored, called the COMSPEC path.
  821.                   4DOS uses this path to find its files and to set the
  822.                   COMSPEC environment variable (see page 17).
  823.  
  824.                   If you use MS-DOS or PC-DOS 3.0 or above, 4DOS will
  825.                   normally find its directory automatically and this option
  826.                   will not be needed.  If you run 4DOS under OS/2, or use
  827.                   Novell DOS or DR DOS, this option is required unless
  828.                   4DOS.COM is in the root directory of the boot drive.
  829.  
  830.                   @d:\path\inifile:  This option sets the path and name of
  831.                   the 4DOS.INI file.  You don't need this option if you
  832.                   aren't using an .INI file at all, or if the file is
  833.                   called 4DOS.INI and it is in the same directory as
  834.                   4DOS.COM, or in the root directory of the boot drive.
  835.  
  836.                   //iniline:  This option tells 4DOS to treat the text
  837.                   appearing between the // and the next space or tab as a
  838.                   4DOS.INI directive.  The directive should be in the same
  839.                   format as a line in 4DOS.INI, but may not contain spaces,
  840.  
  841.  
  842.         -------------------------------------------------------------------
  843.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 11
  844.  
  845.                                                   CHAPTER 2 / CONFIGURATION
  846.         -------------------------------------------------------------------
  847.  
  848.                   tabs, or comments.  Directives on the SHELL= line
  849.                   override any corresponding directive in 4DOS.INI.  This
  850.                   is a convenient way to place one or two simple directives
  851.                   on the SHELL= line without having to modify or create a
  852.                   4DOS.INI file.
  853.  
  854.                   /D:  This option disables execution of AUTOEXEC.BAT (or
  855.                   the file named in the AutoExecPath directive in 4DOS.INI
  856.                   or on the SHELL= line).  It is intended for internal use
  857.                   by MS-DOS / PC-DOS 6.x.  When you press the F8 key during
  858.                   the boot process, MS-DOS prompts for whether to run
  859.                   AUTOEXEC.BAT.  If you answer "No", the /D switch is used
  860.                   to relay your choice to 4DOS.
  861.  
  862.                   /E:nnnn:  This option sets the size of the environment,
  863.                   in bytes.  If you don't use this option, 4DOS will
  864.                   allocate 512 bytes for the environment.  You can use any
  865.                   value from 256 to 32000 as the environment size.  For
  866.                   example, to set an environment of 1,000 bytes, you would
  867.                   enter the option as /E:1000.
  868.  
  869.                   You can also set the environment size with the
  870.                   Environment directive in the 4DOS.INI file (see your
  871.                   Reference Manual).
  872.  
  873.                   /F:  This option tells 4DOS to automatically provide a
  874.                   Fail response to all critical errors, without prompting
  875.                   or waiting for a user response.  It is rarely used except
  876.                   on systems that must run unattended, like bulletin
  877.                   boards.  We do not recommend use of this option on a
  878.                   normal system, because you will not have a chance to
  879.                   react to a critical error and correct the problem that
  880.                   caused it.  For more information on critical errors see
  881.                   Chapter 3 of your Reference Manual.  /F only affects
  882.                   critical errors detected by 4DOS, and will not affect
  883.                   critical error handling for many application programs
  884.                   which perform this function themselves.  It is equivalent
  885.                   to the directive CritFail=Yes in 4DOS.INI.
  886.  
  887.                   /L, /LA, and /LH:  These options force 4DOS to use a
  888.                   local alias and / or history list.  They can be used to
  889.                   override any LocalAlias=No or LocalHistory=No settings in
  890.                   4DOS.INI.  This allows you to use global aliases as the
  891.                   default, but start a specific shell or OS/2 DOS session
  892.                   with local aliases or history.  See your Reference Manual
  893.                   for details on local and global aliases and history.  /LA
  894.                   forces local aliases, /LH forces local history, and /L
  895.                   forces both local aliases and local history.
  896.  
  897.  
  898.  
  899.         -------------------------------------------------------------------
  900.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 12
  901.  
  902.                                                   CHAPTER 2 / CONFIGURATION
  903.         -------------------------------------------------------------------
  904.  
  905.                   /Y:  This option forces 4DOS to "single-step" through
  906.                   4START and AUTOEXEC.BAT (or the file named in the
  907.                   AutoExecPath directive).  It is intended for internal use
  908.                   by MS-DOS 6.x.  When you press the F8 key to enable
  909.                   single-stepping during the boot process, the /Y switch is
  910.                   used to relay your choice to 4DOS.
  911.  
  912.                   /P[:filename]:  This option tells 4DOS to load
  913.                   permanently and to run AUTOEXEC.BAT.  If you specify a
  914.                   filename after the /P, that file will be run instead of
  915.                   AUTOEXEC.BAT.  You should specify the full name of the
  916.                   file, including drive and directory.  A filename after /P
  917.                   will override the AutoExecPath option in 4DOS.INI.
  918.  
  919.                   When 4DOS is loaded from the SHELL= command in
  920.                   CONFIG.SYS, or as the shell for an OS/2 DOS session, it
  921.                   will normally detect that it is the primary shell and set
  922.                   the /P option automatically.  Under very rare
  923.                   circumstances, you may want to load 4DOS permanently and
  924.                   have it run AUTOEXEC even though you are not loading it
  925.                   from CONFIG.SYS; in such cases you must set /P yourself.
  926.                   4DOS will not run AUTOEXEC.BAT without either an
  927.                   automatic or an explicit /P.  Do not use this option in
  928.                   secondary shells, or you will be unable to return to the
  929.                   primary shell.
  930.  
  931.                   [/K] command:  This option tells 4DOS to run the command
  932.                   after 4START and AUTOEXEC.BAT but before displaying the
  933.                   prompt.  The command can be any valid alias, internal or
  934.                   external command, or batch file.  All other startup
  935.                   options (such as //iniline or /P) must be placed before
  936.                   the command, because 4DOS will treat characters after the
  937.                   command as part of the command and not as additional
  938.                   startup options.
  939.  
  940.                   If you use MS-DOS / PC-DOS 6.x and use /K, the command
  941.                   will be executed instead of AUTOEXEC.BAT (for
  942.                   compatibility with MS-DOS / PC-DOS 6.x COMMAND.COM).  In
  943.                   all other cases, the command will be executed in addition
  944.                   to AUTOEXEC.BAT.
  945.  
  946.         ##   If you specify a path and name for the 4DOS.INI file on the
  947.              SHELL= line, or if you use options that will override
  948.              directives in your .INI file, you must place the command line
  949.              options on the SHELL= line in the order in which they are
  950.              listed above.  If you do not, you may find that the command
  951.              line options do not properly override directives in the .INI
  952.              file.
  953.  
  954.  
  955.  
  956.         -------------------------------------------------------------------
  957.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 13
  958.  
  959.                                                   CHAPTER 2 / CONFIGURATION
  960.         -------------------------------------------------------------------
  961.  
  962.              Caution
  963.  
  964.         !    There is a bug in all versions of MS-DOS and PC-DOS from 2.0
  965.              through 4.01:  the SHELL= line in the CONFIG.SYS file may not
  966.              contain more than 31 characters following the name of the
  967.              shell program (i.e., beginning with the space after
  968.              "4DOS.COM").  If the line is too long, the options will not be
  969.              passed properly to 4DOS and a variety of errors can occur.
  970.              You can set all necessary 4DOS options without exceeding this
  971.              limit, especially if you put 4DOS.COM and 4DOS.INI in the root
  972.              directory of your boot drive.  This limit is not present in
  973.              MS-DOS / PC-DOS 5.0 and above, in Novell DOS, or in OS/2.
  974.  
  975.  
  976.         ##   4DOS and Multiple-Configuration Utilities
  977.  
  978.              4DOS is fully compatible with most products which allow
  979.              multiple configurations in your DOS CONFIG.SYS file, including
  980.              BOOT.SYS (a powerful multiple-configuration utility sold by JP
  981.              Software), and the MS-DOS / PC-DOS 6.0 and above "multi-
  982.              config" feature.
  983.  
  984.              If you plan to use the same 4DOS setup for all configurations,
  985.              create one SHELL= line and place it in the common area of
  986.              CONFIG.SYS that is used for all configurations.
  987.  
  988.              If you want to use a separate 4DOS setup for each
  989.              configuration, create individual SHELL= lines in the area of
  990.              CONFIG.SYS specific to each configuration.  Start out using
  991.              the same line for each configuration, then make any necessary
  992.              changes to your standard setup.  For example, you could use
  993.              options on the SHELL= line to select a different .INI file or
  994.              AUTOEXEC file for certain configurations (see above for more
  995.              details on these options).
  996.  
  997.              Be sure to check APPNOTES.DOC for notes on the specific
  998.              configuration utility you use.
  999.  
  1000.  
  1001.              4DOS and DOS 2
  1002.  
  1003.              We recommend using DOS 3.1 or above, but 4DOS can be used with
  1004.              DOS 2.  The only special consideration is that 4DOS must be
  1005.              loaded differently under DOS 2.x, because certain DOS 2
  1006.              functions require that COMMAND.COM be loaded as the primary
  1007.              command processor.  Therefore, you must load COMMAND.COM first
  1008.              and then 4DOS.  Assuming that all files are in the root
  1009.              directory of your boot drive, the SHELL= line in DOS 2.x
  1010.              should look like this:
  1011.  
  1012.  
  1013.         -------------------------------------------------------------------
  1014.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 14
  1015.  
  1016.                                                   CHAPTER 2 / CONFIGURATION
  1017.         -------------------------------------------------------------------
  1018.  
  1019.                   shell=command.com /c 4DOS /p [options]
  1020.  
  1021.              Note that due to the "/c 4DOS" on the SHELL line, fewer
  1022.              options can be used before running into the 31-character limit
  1023.              discussed above.  You must, however, use the /P option, or
  1024.              AUTOEXEC.BAT will not run.  4DOS will not automatically detect
  1025.              that it is the primary shell and set /P for you when run under
  1026.              DOS 2.
  1027.  
  1028.  
  1029.         Startup Options for Secondary Shells
  1030.  
  1031.              You may want to set explicit options for a 4DOS secondary
  1032.              shell when you define a 4DOS window in a task switching or
  1033.              multitasking system such as Windows, DESQview, Back & Forth,
  1034.              or the MS-DOS shell (DOSSHELL); when you "shell out" of a
  1035.              program which allows you to specify command-line options for
  1036.              the shell; or in rare cases when you run a secondary copy of
  1037.              4DOS directly from the command line.  In most other cases,
  1038.              secondary shells do not use or require any startup options.
  1039.  
  1040.              If you do need to set options for secondary shells, you can
  1041.              use any of the following (for more details on items which are
  1042.              the same as those used in CONFIG.SYS, see the section
  1043.              beginning on page 11):
  1044.  
  1045.                   @d:\path\inifile:  Set the .INI file name, as in
  1046.                   CONFIG.SYS.  This option is not necessary if you want
  1047.                   4DOS to use the same .INI file that you used for the
  1048.                   primary shell, because values from that file - including
  1049.                   those in its [Secondary] section - will be passed
  1050.                   automatically to secondary shells.
  1051.  
  1052.                   //iniline:  This option tells 4DOS to treat the text
  1053.                   appearing between the // and the next space or tab as a
  1054.                   4DOS.INI directive.  The directive should be in the same
  1055.                   format as a line in 4DOS.INI, but may not contain spaces,
  1056.                   tabs, or comments.  Directives on the secondary shell
  1057.                   command line override any corresponding directive in
  1058.                   4DOS.INI.  This allows you to use 4DOS.INI directives
  1059.                   directly on the command line when starting 4DOS in a
  1060.                   window of a multitasking system, rather than having to
  1061.                   create separate copies of 4DOS.INI to accommodate small
  1062.                   configuration changes in different windows.
  1063.  
  1064.                   /E:nnnn:  Set the environment size, as in CONFIG.SYS.
  1065.  
  1066.                   /F:  Force an automatic "Fail" on critical error, as in
  1067.                   CONFIG.SYS.
  1068.  
  1069.  
  1070.         -------------------------------------------------------------------
  1071.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 15
  1072.  
  1073.                                                   CHAPTER 2 / CONFIGURATION
  1074.         -------------------------------------------------------------------
  1075.  
  1076.                   /L, /LA, and /LH:  Force 4DOS to use a local alias and /
  1077.                   or history list, as in CONFIG.SYS.
  1078.  
  1079.                   [/C | /K] command:  This option tells 4DOS to run the
  1080.                   command after 4START but before any command prompt is
  1081.                   displayed.  The command can be any valid alias, internal
  1082.                   or external command, or batch file, and can include
  1083.                   multiple commands.  Use this option if you want 4DOS to
  1084.                   run a batch file or execute a command when it starts, for
  1085.                   example to run a specific batch file when 4DOS is started
  1086.                   in a window of a multitasking system.
  1087.  
  1088.                   When the command is preceded by a /C, 4DOS will execute
  1089.                   it and then exit and return to the parent program.  /C is
  1090.                   used by some applications to start the command processor,
  1091.                   run one command, and then return to the application.
  1092.  
  1093.                   The /K switch is included only for compatibility with
  1094.                   COMMAND.COM.  It has no effect on 4DOS; using it is the
  1095.                   same as placing the command (without a /C or /K) at the
  1096.                   end of the startup command line.
  1097.  
  1098.  
  1099.         Using AUTOEXEC.BAT, 4START, and 4EXIT
  1100.  
  1101.              You generally won't need to make any changes to AUTOEXEC.BAT
  1102.              to make it run properly under 4DOS, although once you get used
  1103.              to 4DOS's batch file enhancements, you may want to use them to
  1104.              streamline AUTOEXEC.
  1105.  
  1106.              If you want to use the 4DOS KEYSTACK command, you will
  1107.              normally load the program KSTACK.COM from your AUTOEXEC.BAT
  1108.              file.  To do so, include the following line in your file (be
  1109.              sure to place it before any KEYSTACK commands):
  1110.  
  1111.                   d:\path\kstack.com
  1112.  
  1113.              Replace d:\path with the path to the KSTACK.COM program, which
  1114.              will normally be stored in your 4DOS directory.
  1115.  
  1116.              You may want to use AUTOEXEC.BAT to configure 4DOS by setting
  1117.              the environment variables that 4DOS uses:  CDPATH, COLORDIR,
  1118.              COMSPEC, PATH, PROMPT, TEMP, and TEMP4DOS.  You may also want
  1119.              to include a SETDOS command to set configuration variables.
  1120.              All of these settings are optional.
  1121.  
  1122.              4DOS runs two special batch files automatically, 4START and
  1123.              4EXIT.  4START is executed whenever 4DOS is started.  In the
  1124.              primary shell, it is executed before AUTOEXEC.BAT.  If 4DOS is
  1125.  
  1126.  
  1127.         -------------------------------------------------------------------
  1128.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 16
  1129.  
  1130.                                                   CHAPTER 2 / CONFIGURATION
  1131.         -------------------------------------------------------------------
  1132.  
  1133.              started as a secondary shell with the [/C] command option,
  1134.              4START is executed before the command.
  1135.  
  1136.              See your Reference Manual for more information on environment
  1137.              variables, the SETDOS command, and AUTOEXEC.BAT, 4START, and
  1138.              4EXIT.
  1139.  
  1140.  
  1141.         COMSPEC and the COMSPEC Path
  1142.  
  1143.              The COMSPEC environment variable contains the full path and
  1144.              name of the command processor.  For example, if 4DOS is stored
  1145.              in the directory C:\4DOS, the COMSPEC variable should be set
  1146.              to C:\4DOS\4DOS.COM.  COMSPEC is used by applications which
  1147.              need to find the command processor to implement a "shell to
  1148.              DOS" feature.
  1149.  
  1150.              You can set the COMSPEC variable by specifying the COMSPEC
  1151.              path when your system starts, or by using a SET command as you
  1152.              would for any environment variable.
  1153.  
  1154.              If you include a COMSPEC path on the SHELL= line in CONFIG.SYS
  1155.              (see page 11), or in the DOS_SHELL setting for an OS/2 2.x DOS
  1156.              session (see page 47), 4DOS will set the COMSPEC variable
  1157.              automatically to the path you specify, and append the filename
  1158.              4DOS.COM.  This method also allows 4DOS to use the COMSPEC
  1159.              path to find other files during the startup process, such as
  1160.              4DOS.INI and 4START.
  1161.  
  1162.              If you don't include the COMSPEC path on the primary shell's
  1163.              startup command line, 4DOS will set the COMSPEC variable to
  1164.              the root directory of the boot drive (x:\4DOS.COM where "x" is
  1165.              the boot drive), and will also look in the root directory of
  1166.              the boot drive for 4DOS.INI and 4START.
  1167.  
  1168.              You can also set the COMSPEC variable manually with a SET
  1169.              command in AUTOEXEC.BAT.  This method will override any
  1170.              setting made with a COMSPEC path on the primary shell's
  1171.              startup command line as described above.  We do not recommend
  1172.              this approach, because it will allow applications to shell to
  1173.              DOS, but will not provide the information the primary 4DOS
  1174.              shell needs to find its files during the startup process.
  1175.  
  1176.              When 4DOS is running as the primary command processor, you can
  1177.              determine whether COMSPEC has been set correctly by typing the
  1178.              following line at the 4DOS prompt:
  1179.  
  1180.                   echo %comspec
  1181.  
  1182.  
  1183.  
  1184.         -------------------------------------------------------------------
  1185.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 17
  1186.  
  1187.                                                   CHAPTER 2 / CONFIGURATION
  1188.         -------------------------------------------------------------------
  1189.  
  1190.         4DOS Swapping Methods
  1191.  
  1192.              4DOS runs in two parts, a resident portion that is always in
  1193.              memory and a transient portion that can be stored in EMS
  1194.              memory, in XMS memory, on a RAM disk, or on your hard disk
  1195.              while application programs are running.  The resident portion
  1196.              uses about 3K bytes of memory in the primary shell and about
  1197.              1.5K bytes in secondary shells.  The transient portion uses
  1198.              about 128K bytes of memory.  4DOS will perform most quickly if
  1199.              the transient portion is swapped to the fastest memory or
  1200.              device available.
  1201.  
  1202.              See page 24 for explanations of XMS and EMS memory.
  1203.  
  1204.              Swapping for the primary shell normally requires about 128K
  1205.              bytes of EMS memory, XMS memory, or disk space.  Secondary
  1206.              shells normally require 32K bytes of EMS, or 28K bytes of XMS
  1207.              or disk space.  If you have a large environment, alias list,
  1208.              or history list, more memory will be required in both primary
  1209.              and secondary shells.  The EMS requirements are larger because
  1210.              EMS memory is allocated in 16K increments;  4DOS does not
  1211.              actually use more memory when swapping to EMS.
  1212.  
  1213.              You can control 4DOS swapping with the Swapping directive in
  1214.              4DOS.INI.  The Swapping directive lists a series of swap
  1215.              types, which may be:
  1216.  
  1217.                   EMS:  4DOS will swap to EMS expanded memory if it is
  1218.                   available.  You must have expanded memory and an EMS
  1219.                   memory manager (version 3.2 or later) for this option.
  1220.  
  1221.                   XMS:  4DOS will swap to XMS extended memory if it is
  1222.                   available.  You must have an an XMS memory manager and a
  1223.                   80286, 386, 486, or Pentium computer for this option.
  1224.  
  1225.                   d:\path:  4DOS will create a swap file in the drive and
  1226.                   directory specified.  The file will be called
  1227.                   4DOSSWAP.NNN where "NNN" is the shell number (unless you
  1228.                   use the UniqueSwapName directive in 4DOS.INI to generate
  1229.                   a unique swap file name).  This swap file is created as a
  1230.                   hidden system file to avoid accidental deletion and will
  1231.                   not be visible with a normal DIR command.  Swapping to a
  1232.                   RAM disk will generally be faster than swapping to a hard
  1233.                   disk.  Do not use a floppy disk for swapping because its
  1234.                   performance is likely to be unacceptably slow.
  1235.  
  1236.                   None:  No swapping.  The transient portion of 4DOS will
  1237.                   remain in memory at all times.  This option will reduce
  1238.                   memory available for application programs by about 128K
  1239.  
  1240.  
  1241.         -------------------------------------------------------------------
  1242.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 18
  1243.  
  1244.                                                   CHAPTER 2 / CONFIGURATION
  1245.         -------------------------------------------------------------------
  1246.  
  1247.                   compared to the other swap types, and should be used only
  1248.                   when no other swapping options are available.
  1249.  
  1250.              You can specify multiple swap types and 4DOS will try them in
  1251.              the order listed.  Swap type "None" is always appended to your
  1252.              list of possible swap types as a "last resort," even if you
  1253.              don't include it explicitly.  This allows 4DOS to start even
  1254.              if the other swap types you specify don't work.
  1255.  
  1256.              For example, if your system has EMS memory and a RAM disk set
  1257.              up as drive D, the directive:
  1258.  
  1259.                   Swapping = EMS, D:\, C:\SWAP
  1260.  
  1261.              in 4DOS.INI will tell 4DOS to try EMS memory first, then the
  1262.              RAM disk, and finally the \SWAP directory on drive C.  If all
  1263.              of these options fail (because there isn't enough free space
  1264.              available), the transient portion of 4DOS will remain in
  1265.              memory (swap type "None").
  1266.  
  1267.              The default Swapping specification is:
  1268.  
  1269.                   Swapping = EMS, XMS, x:\, None
  1270.  
  1271.              where "x" is the boot drive (for the primary shell) or the
  1272.              COMSPEC drive (for secondary shells).  (Disk swapping will not
  1273.              be included as part of the default if the boot drive is A: or
  1274.              B:, because floppy disk swapping is too slow to be useful on
  1275.              most systems.)
  1276.  
  1277.              After 4DOS starts, you can use the SWAPPING command to view
  1278.              the type of swapping in use.
  1279.  
  1280.  
  1281.         4DOS Help
  1282.  
  1283.              4DOS includes a complete help program called 4HELP.EXE.  The
  1284.              help system includes complete help for all 4DOS internal
  1285.              commands, all standard DOS external commands, and most 4DOS
  1286.              features.  The information in the help system is fully cross-
  1287.              referenced, so you can move easily among related commands.
  1288.  
  1289.              You can start the help system by typing HELP (or HELP plus a
  1290.              command name) at the prompt, or by pressing the F1 key at any
  1291.              time at the command line.
  1292.  
  1293.              If you type part or all of a command on the line and then
  1294.              press F1, the help system will provide "context-sensitive"
  1295.              help by using the first word on the line as a help topic.  If
  1296.              it's a valid topic, you will see help for that topic
  1297.  
  1298.         -------------------------------------------------------------------
  1299.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 19
  1300.  
  1301.                                                   CHAPTER 2 / CONFIGURATION
  1302.         -------------------------------------------------------------------
  1303.  
  1304.              automatically; if not, you will see the list of all help
  1305.              topics and you can pick the one you want.  For example, if you
  1306.              press F1 after entering each of the command lines shown below
  1307.              you will get the display indicated:
  1308.  
  1309.                   c:\>                Topic list
  1310.                   c:\> copy *.* a:    Help on COPY
  1311.                   c:\> c:\util\map    Topic list
  1312.  
  1313.              If you type the name of any internal command at the prompt,
  1314.              followed by a slash and a question mark [/?] like this:
  1315.  
  1316.                   copy /?
  1317.  
  1318.              then you will see help for the command in a "quick-reference"
  1319.              style.  Output from a /? display may be redirected with > or
  1320.              >>.
  1321.  
  1322.         ##   The /? option may not work correctly if you have used an alias
  1323.              to redefine how an internal command operates.  To view the /?
  1324.              help for such a command you must add an asterisk to the
  1325.              beginning of the command to disable alias processing.  For
  1326.              example, if you have defined this alias:
  1327.  
  1328.                   alias copy *copy /r
  1329.  
  1330.              then the command COPY /? will be translated to COPY /R /?,
  1331.              which will not work properly.  However, if you use *COPY /?,
  1332.              the alias will be ignored and the /? will work as you
  1333.              intended.
  1334.  
  1335.              Once you've started the 4DOS help system with HELP or F1, you
  1336.              can use a standard set of keystrokes to navigate.  The table
  1337.              below gives a summary of keys you can use in the help topic
  1338.              list, and in a help text screen.  For more details on using
  1339.              the help system, see the Help topic (at the beginning of the
  1340.              topic list) in the help system itself.  For details on mouse
  1341.              usage, see the Mouse topic in the help system.
  1342.  
  1343.              Help topic list keys:
  1344.  
  1345.                   Arrow Keys          Move the highlight to a different
  1346.                                       topic.
  1347.                   Enter               Display help on the highlighted
  1348.                                       topic.
  1349.                   Esc                 Return to 4DOS.
  1350.                   Any other key       Attempt to match the characters typed
  1351.                                       with one of the names in the topic
  1352.                                       list.
  1353.  
  1354.  
  1355.         -------------------------------------------------------------------
  1356.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 20
  1357.  
  1358.                                                   CHAPTER 2 / CONFIGURATION
  1359.         -------------------------------------------------------------------
  1360.  
  1361.              Help text screen keys:
  1362.  
  1363.                   Up Arrow            Scroll up one line in the display.
  1364.                   Down Arrow          Scroll down one line in the display.
  1365.                   PgUp                Scroll up one page in the display.
  1366.                   PgDn                Scroll down one page in the display.
  1367.                   Left Arrow          Move the cross-reference highlight to
  1368.                                       the previous item.
  1369.                   Right Arrow         Move the cross-reference highlight to
  1370.                                       the next item.
  1371.                   Enter               Switch to the topic shown by the
  1372.                                       highlighted cross-reference item.
  1373.                   Esc                 Return to the topic list, or back to
  1374.                                       4DOS if this topic was displayed
  1375.                                       directly without using the topic
  1376.                                       list.
  1377.                   F1                  Go to the topic list in order to
  1378.                                       select a new topic.
  1379.                   Alt-N or Ctrl-Right View the next topic in the topic
  1380.                                       list.
  1381.                   Alt-P or Ctrl-Left  View the previous topic in the topic
  1382.                                       list.
  1383.                   Alt-F1              View the previously displayed topic.
  1384.                   Alt-X               Return directly to 4DOS without
  1385.                                       restoring the original screen
  1386.                                       contents.
  1387.                   F                   Find a string within the current
  1388.                                       topic.
  1389.                   G                   Find a string in any topic (a
  1390.                                       "global" search).
  1391.                   N                   Find the next occurrence of the
  1392.                                       search string.
  1393.                   P                   Print the text for the current topic
  1394.                                       on LPT1.
  1395.  
  1396.              The help system normally restores the screen when exiting.
  1397.              Use Alt-X to leave a page of help text on the screen so you
  1398.              can refer to it.  You can use F, G, and N to search for a
  1399.              string in the help text, and P to print the topic you are
  1400.              viewing.  Your printer must be turned on and ready before
  1401.              pressing P.
  1402.  
  1403.  
  1404.              Configuring the Help System
  1405.  
  1406.              The 4DOS help system can be configured in several different
  1407.              ways.
  1408.  
  1409.              First, the HELPCFG.EXE program included with 4DOS allows you
  1410.              to customize the HELP colors.  To use it, just change to your
  1411.  
  1412.         -------------------------------------------------------------------
  1413.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 21
  1414.  
  1415.                                                   CHAPTER 2 / CONFIGURATION
  1416.         -------------------------------------------------------------------
  1417.  
  1418.              4DOS directory, enter the command HELPCFG, and follow the
  1419.              instructions it displays.  To force HELPCFG to adjust the
  1420.              monochrome HELP colors, even if you are using a color system,
  1421.              use the command HELPCFG /M to start the program.
  1422.  
  1423.              You can use the HelpPath directive in your 4DOS.INI file to
  1424.              inform 4DOS of the location of the HELP files (4HELP.EXE and
  1425.              4DOS.HLP).  If you don't use the HelpPath directive, the HELP
  1426.              program must be in the current directory or in one of the
  1427.              directories specified in your PATH setting.  If you use the
  1428.              HelpPath directive, the HELP command will generally respond
  1429.              more quickly because 4DOS won't have to search the directories
  1430.              in your PATH setting to find the help files.
  1431.  
  1432.              The HELP command has three options which you can set with the
  1433.              HelpOptions directive in 4DOS.INI.  The options are:
  1434.  
  1435.                   /M(onochrome):  Forces HELP to use monochrome display
  1436.                   mode.  This is useful on a system which has a color video
  1437.                   board and a monochrome display (for example, portable
  1438.                   computers with LCD screens).
  1439.  
  1440.                   /Sn (Speed):  Sets the HELP mouse movement speed.  /S0
  1441.                   sets the speed to one half the default mouse speed.  /S2
  1442.                   sets it to twice the default, and /S4 sets it to four
  1443.                   times the default.  The higher values may be useful if
  1444.                   you use a screen larger than the standard size of 80 x
  1445.                   25.
  1446.  
  1447.                   /X:  Disable the mouse while HELP is running.  If you
  1448.                   have a Microsoft serial or PS/2 mouse and are
  1449.                   experiencing long delays when HELP starts, you can use
  1450.                   this option to disable the mouse.  (The delay is caused
  1451.                   by the extended time required by some versions of the
  1452.                   Microsoft mouse driver to initialize these mice.)
  1453.  
  1454.              For example, if you want HELP to use a monochrome display and
  1455.              disable the mouse by default, you could include the following
  1456.              line in your 4DOS.INI file:
  1457.  
  1458.                   HelpOptions = /M /X
  1459.  
  1460.              You can include the same options on the HELP command line if
  1461.              you wish.  Options used on the HELP command line will override
  1462.              any that are set in the 4DOS.INI file.  For example, to obtain
  1463.              help on the COPY command, and disable the mouse, you could use
  1464.              this command:
  1465.  
  1466.                   c:\> help /x copy
  1467.  
  1468.  
  1469.         -------------------------------------------------------------------
  1470.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 22
  1471.  
  1472.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1473.         -------------------------------------------------------------------
  1474.  
  1475.  
  1476.         CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1477.  
  1478.  
  1479.         This chapter explains how to get the most from 4DOS with the
  1480.         particular hardware and software in use on your system.
  1481.  
  1482.         You should find that 4DOS is compatible with all your PC hardware
  1483.         and software.  We have designed it carefully so that it uses
  1484.         standard, documented methods to do its job.  It works properly with
  1485.         all kinds of CPUs, keyboards, video displays, and disks; with
  1486.         application software, utilities, networks, multitaskers and task
  1487.         switchers, and memory-resident (TSR) programs; and with system
  1488.         software like disk caches, memory managers, and device drivers.  We
  1489.         test 4DOS regularly with dozens of hardware setups and hundreds of
  1490.         popular software products in order to catch and correct any
  1491.         possible compatibility problems before you encounter them.
  1492.  
  1493.         The following sections discuss using 4DOS:
  1494.  
  1495.              * With the physical hardware that makes up your computer
  1496.                system (the CPU, Memory, Video, and Disks).
  1497.  
  1498.              * With DOS, including a specific discussion of Novell DOS.
  1499.  
  1500.              * With multitasking and task switching programs, including a
  1501.                specific discussion of Microsoft Windows.
  1502.  
  1503.              * With networks, including Novell Netware.
  1504.  
  1505.         For specific information about any individual software package or
  1506.         hardware product, including the latest information about products
  1507.         mentioned in this chapter, see the APPNOTES.DOC file distributed
  1508.         with 4DOS.  It contains the latest information available when your
  1509.         copy of 4DOS was shipped.
  1510.  
  1511.         If you need to diagnose a problem that isn't covered below or in
  1512.         APPNOTES.DOC, see Appendix A on page 53.
  1513.  
  1514.         If you have questions about some of the terms and concepts here,
  1515.         see Chapter 1 or the Glossary in your Reference Manual, or the
  1516.         Index on page 68 of this manual.
  1517.  
  1518.  
  1519.         The CPU
  1520.  
  1521.              The CPU or "Central Processing Unit" is the chip which
  1522.              performs or directs all of the work done by your computer.
  1523.              All PC CPU chips are part of or compatible with Intel's
  1524.              "80x86" family.  These include the 8088, 8086, 80188, 80186,
  1525.  
  1526.         -------------------------------------------------------------------
  1527.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 23
  1528.  
  1529.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1530.         -------------------------------------------------------------------
  1531.  
  1532.              80286, 386, 486, Pentium, NEC V20, and NEC V30, plus "SX"
  1533.              versions and other variations of some of those chips.  4DOS is
  1534.              compatible with all of these chips.
  1535.  
  1536.              Some systems have a numeric coprocessor as a companion to the
  1537.              CPU.  The numeric coprocessor performs many arithmetic
  1538.              calculations faster than the CPU.  4DOS does not use the
  1539.              numeric coprocessor.
  1540.  
  1541.              You can determine which CPU chip your system has by using
  1542.              4DOS's _CPU internal variable:
  1543.  
  1544.                   c:\> echo %_cpu
  1545.  
  1546.              Similarly, you can find out if you have a numeric coprocessor
  1547.              with _NDP:
  1548.  
  1549.                   c:\> echo %_ndp
  1550.  
  1551.              See your Reference Manual for details about _CPU and _NDP.
  1552.  
  1553.  
  1554.         Memory
  1555.  
  1556.              The memory in your computer is organized in bytes.  Normally,
  1557.              the amount of memory in a computer is discussed in terms of
  1558.              kilobytes (KBytes or 1,024 bytes) and megabytes (MBytes or
  1559.              1,048,576 bytes or 1,024 KBytes).  The amount of memory
  1560.              available in your computer is determined by the number of
  1561.              memory chips or memory modules you have installed.
  1562.  
  1563.              In an ideal world, there would be little more to say about
  1564.              memory.  But because of the history of PCs, the needs of large
  1565.              application programs, and the capabilities of advanced CPUs,
  1566.              there are many different kinds of memory.  The original 8088
  1567.              CPUs of the PC and PC/XT can address 1 MByte of memory.  Of
  1568.              that, a maximum of 640KBytes is allocated as base,
  1569.              conventional, DOS, or low DOS memory (all these terms mean the
  1570.              same thing).  The other 384 KBytes, known as upper memory, are
  1571.              set aside for the computer's built-in ROM BIOS, video adapter
  1572.              cards, hard disk controllers, and other expansion hardware.
  1573.  
  1574.              When base memory became too limiting, expanded memory (or EMS
  1575.              memory) was developed to give programs more data space.
  1576.              Expanded memory adds a maximum of 16 MBytes which programs can
  1577.              access, 64KBytes at a time, through a window in upper memory.
  1578.              In 8088 / 8086 (PC and XT), and 80286 (AT) based computers,
  1579.              expanded memory typically requires an add-on board and support
  1580.              software.  In 386, 486, and Pentium computers, expanded memory
  1581.  
  1582.  
  1583.         -------------------------------------------------------------------
  1584.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 24
  1585.  
  1586.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1587.         -------------------------------------------------------------------
  1588.  
  1589.              is typically provided without additional hardware, using the
  1590.              capabilities of the 386 / 486 / Pentium chips.
  1591.  
  1592.              The 80286 CPU used in the AT, and modern 386, 486, and Pentium
  1593.              CPUs, can use much more than the 8088's original 1 MByte of
  1594.              memory.  An 80286 can use a total of 16 MBytes, and the 386,
  1595.              486, and Pentium can use up to 4,096 MBytes (4 gigabytes) of
  1596.              physical memory.  This extended memory is not normally
  1597.              available to DOS-based programs, however, without special
  1598.              programming techniques and the help of DOS extenders or memory
  1599.              managers.
  1600.  
  1601.              The memory terms used in your 4DOS manuals include:
  1602.  
  1603.                   Base memory:  The 640 Kbytes or less that has
  1604.                   traditionally been available for DOS and DOS-based
  1605.                   applications.
  1606.  
  1607.                   EMS or LIM EMS Memory:  Memory which conforms to the
  1608.                   Expanded Memory Specification, developed by Lotus, Intel,
  1609.                   and Microsoft, that lets programs and utilities share
  1610.                   expanded memory.
  1611.  
  1612.                   Extended Memory:  Memory beyond 1 MB in 80286, 386, 486
  1613.                   and Pentium computers.  This memory may be accessed
  1614.                   directly, in which case it is referred to as Extended
  1615.                   Memory, or through XMS software, in which case it is
  1616.                   referred to as XMS Memory.
  1617.  
  1618.                   XMS Memory:  Extended memory managed by software which
  1619.                   conforms to the Extended Memory Specification (XMS).  XMS
  1620.                   lets programs share extended memory without conflict.
  1621.                   This specification divides extended memory into extended
  1622.                   memory blocks (EMBs).  XMS software also usually manages
  1623.                   the HMA and the UMBs.
  1624.  
  1625.                   HMA:  The first 64K bytes of extended memory, located
  1626.                   just above 1 MB.  Certain specialized programs such as
  1627.                   DESQview, some network drivers, and portions of MS-DOS
  1628.                   (version 5.0 or later) and Novell DOS (version 5.0 or
  1629.                   later) can be loaded into the HMA instead of taking up
  1630.                   valuable space in base memory.
  1631.  
  1632.                   UMBs:  386, 486, and Pentium computers can electronically
  1633.                   "move" pieces of extended memory into unused space in the
  1634.                   upper memory area between 640KB and 1 MB.  Each block of
  1635.                   this memory is called an Upper Memory Block (UMB).  With
  1636.                   MS-DOS / PC-DOS 5.0 or later, Novell DOS 5.0 or later, or
  1637.                   third-party memory managers like 386MAX and QEMM, memory-
  1638.                   resident programs can be loaded into these UMBs instead
  1639.  
  1640.         -------------------------------------------------------------------
  1641.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 25
  1642.  
  1643.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1644.         -------------------------------------------------------------------
  1645.  
  1646.                   of taking up valuable space in base memory.  Some 8086,
  1647.                   8088, and 80286 systems can also use UMBs with
  1648.                   appropriate additional hardware and software.
  1649.  
  1650.              4DOS does its best to detect and properly access all types of
  1651.              memory that your computer can have.  4DOS always uses
  1652.              standard, documented methods to use the memory that you have
  1653.              installed.
  1654.  
  1655.              4DOS uses memory in three ways (see page 18 for more
  1656.              information about swapping and the resident and transient
  1657.              portions of 4DOS):
  1658.  
  1659.                   * By default, 4DOS uses base memory for its resident
  1660.                     portion, the master environment, and the alias and
  1661.                     history lists.  Base memory is also used to hold the
  1662.                     transient portion of 4DOS while your system is at the
  1663.                     command prompt or executing a 4DOS command or batch
  1664.                     file, and to create any necessary temporary data areas
  1665.                     (for example, to hold the filenames to be listed in a
  1666.                     directory display, or data being copied from one file
  1667.                     to another).
  1668.  
  1669.                   * 4DOS can use EMS memory or an XMS Extended Memory
  1670.                     Block (EMB) to swap its transient portion, according
  1671.                     to the Swapping directive in your 4DOS.INI file.
  1672.  
  1673.                   * 4DOS can use Upper Memory Blocks (UMBs) for its
  1674.                     resident portion, master environment, and global alias
  1675.                     and history lists.
  1676.  
  1677.              4DOS never accesses extended memory directly.  It always uses
  1678.              an XMS driver like HIMEM.SYS, 386MAX, QEXT, or QEMM.  4DOS can
  1679.              also access any RAM disk you create in extended memory by
  1680.              using a program like VDISK.SYS or RAMDRIVE.SYS.  4DOS does not
  1681.              use the HMA at all.
  1682.  
  1683.              If you want to know whether 4DOS sees your system's memory
  1684.              accurately, check the output of the MEMORY command.  It should
  1685.              correspond to your computer's memory configuration.
  1686.  
  1687.              The MEMORY command's output depends to some extent on your
  1688.              memory manager.  Some memory managers turn your extended
  1689.              memory into either XMS or EMS memory as required, so that the
  1690.              same memory is shown both ways in the MEMORY report.  If 1 MB
  1691.              of extended memory managed by such a memory manager is
  1692.              available, MEMORY will report 1 MB of free XMS memory and 1 MB
  1693.              of free EMS memory, even though it is all the same memory.
  1694.  
  1695.  
  1696.  
  1697.         -------------------------------------------------------------------
  1698.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 26
  1699.  
  1700.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1701.         -------------------------------------------------------------------
  1702.  
  1703.              Memory-related problems with 4DOS are usually due to programs
  1704.              which overwrite the extended memory block (EMB) that 4DOS uses
  1705.              for swapping its transient portion.  When you exit from such a
  1706.              program, your system will hang, because 4DOS tried to swap
  1707.              itself back into base memory but its code and data in XMS have
  1708.              been destroyed by the program.  The same problem can occur
  1709.              with EMS swapping but is less common because EMS memory is
  1710.              generally better defended against wayward programs.  You can
  1711.              diagnose this kind of problem easily by changing to disk
  1712.              swapping with the 4DOS.INI Swapping directive (see page 18)
  1713.              and rebooting.  If the problem goes away with disk swapping,
  1714.              then the program in question is probably destroying 4DOS's
  1715.              swap area in XMS or EMS memory.
  1716.  
  1717.              4DOS EMS swapping sometimes has difficulty with EMS drivers
  1718.              which do not fully meet the EMS 3.2 specification (4DOS
  1719.              supports, but does not require, EMS 4.0 drivers).  If you have
  1720.              trouble accessing EMS for swapping, check APPNOTES.DOC to see
  1721.              if there are any known problems with your EMS board or the
  1722.              associated driver software.
  1723.  
  1724.  
  1725.              Upper Memory Blocks (UMBs)
  1726.  
  1727.              4DOS uses UMBs for several purposes:
  1728.  
  1729.                   * to move the 4DOS resident portion out of base memory,
  1730.                     if you specify UMBLoad = Yes in your 4DOS.INI file.
  1731.  
  1732.                   * to move the master environment out of base memory, if
  1733.                     you specify UMBEnvironment = Yes in your 4DOS.INI
  1734.                     file.
  1735.  
  1736.                   * to move the global alias and history lists out of base
  1737.                     memory, if you specify UMBAlias = Yes or UMBHistory =
  1738.                     Yes in your 4DOS.INI file.
  1739.  
  1740.                   * to load memory-resident programs (TSRs) "high" using
  1741.                     the LOADHIGH or LH command under MS-DOS / PC-DOS 5.0
  1742.                     or above or Novell DOS 5.0 or above, or in an OS/2 DOS
  1743.                     session.
  1744.  
  1745.              To load 4DOS, the master environment, or global alias and
  1746.              history lists into a UMB, you must be using a memory manager
  1747.              or XMS driver which provides both the ability to remap memory
  1748.              into the area between 640K and 1MB (to create the UMBs) and
  1749.              XMS or DOS 5.0 UMB support (to manage the UMBs).  These are
  1750.              generally the same requirements which must be met to load TSRs
  1751.              "high."
  1752.  
  1753.  
  1754.         -------------------------------------------------------------------
  1755.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 27
  1756.  
  1757.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1758.         -------------------------------------------------------------------
  1759.  
  1760.              To give 4DOS access to UMBs, you need hardware and software
  1761.              combinations like the following:
  1762.  
  1763.              386, 486, and Pentium systems (including 386SX computers):
  1764.  
  1765.                   Hardware:  Sufficient installed RAM.
  1766.  
  1767.                   Software:  Qualitas' 386MAX or Blue Max, Quarterdeck's
  1768.                   QEMM 5.0 or later, DOS's EMM386.SYS, or a similar 386
  1769.                   memory manager.  HIMEM.SYS alone is not sufficient.
  1770.  
  1771.              80286 systems:
  1772.  
  1773.                   Hardware:  Chips and Technologies NEAT or LEAP chip set,
  1774.                   or an EMS 4.0 or EEMS memory board, plus sufficient
  1775.                   installed RAM.
  1776.  
  1777.                   Software:  Qualitas' MOVE-EM 1.02 or later with
  1778.                   Microsoft's HIMEM.SYS, Quarterdeck's QRAM and QEXT, or a
  1779.                   similar 286 memory manager.
  1780.  
  1781.  
  1782.              Upper Memory Regions
  1783.  
  1784.              Upper memory blocks are divided into one or more contiguous
  1785.              regions by your memory manager (see your memory manager
  1786.              documentation for additional details).  All the 4DOS options
  1787.              and commands which allow access to UMBs also allow you to
  1788.              specify a particular UMB region.  For example, you can load
  1789.              the resident portion of 4DOS into upper memory region 1 with a
  1790.              UMBLoad = 1 directive in 4DOS.INI.  If you do not specify a
  1791.              particular region (for example, if you use UMBLoad = Yes
  1792.              rather than UMBLoad = 1), 4DOS will use the first available
  1793.              region.
  1794.  
  1795.              In order to use specific region numbers, you must enable DOS
  1796.              UMB management with the DOS=UMB or DOS=HIGH,UMB directive in
  1797.              CONFIG.SYS, or with the DOS_UMB setting for OS/2 2.x DOS
  1798.              sessions.  If you do not, 4DOS will display an error message
  1799.              and ignore the region number.
  1800.  
  1801.              You can make region support available by using DOS=UMB or
  1802.              DOS=HIGH,UMB even if you are using a 3rd-party memory manager
  1803.              like 386MAX or QEMM.  However, enabling DOS UMB management
  1804.              will disable the "load high" programs that come with some
  1805.              memory managers, requiring you to use the DOS DEVICEHIGH and
  1806.              4DOS LOADHIGH commands instead.  For additional details on how
  1807.              your memory manager responds to DOS UMB management, see the
  1808.              memory manager documentation.
  1809.  
  1810.  
  1811.         -------------------------------------------------------------------
  1812.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 28
  1813.  
  1814.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1815.         -------------------------------------------------------------------
  1816.  
  1817.              Region number support is not available under Novell DOS.
  1818.  
  1819.  
  1820.         Video
  1821.  
  1822.              Although 4DOS can normally detect your video parameters
  1823.              automatically, you may have to configure it to use the system
  1824.              most efficiently.
  1825.  
  1826.              4DOS uses two methods of displaying text on the screen:
  1827.  
  1828.                   * 4DOS calls DOS to write the text of prompts and normal
  1829.                     messages.  If you use an ANSI driver, DOS will
  1830.                     transmit the calls to it.  Otherwise, DOS will use
  1831.                     your BIOS to display text on the screen.  DOS text
  1832.                     display calls will work on all DOS systems, regardless
  1833.                     of video type.
  1834.  
  1835.                   * The DRAWBOX, DRAWHLINE, DRAWVLINE, LIST, SELECT,
  1836.                     SCRPUT, and VSCRPUT commands bypass DOS, the BIOS, and
  1837.                     any ANSI driver.  They write directly to video memory.
  1838.                     These commands will only work on systems with 100%
  1839.                     IBM-compatible video systems.  On other computers,
  1840.                     results will be unpredictable at best.  If you
  1841.                     experience a problem, try adding the line OutputBIOS =
  1842.                     Yes to your 4DOS.INI file.
  1843.  
  1844.              EGA and VGA systems can display text in standard 25-line mode,
  1845.              plus modes with 43, 50, or more lines.  4DOS normally detects
  1846.              the number of lines automatically.  If it doesn't, you can use
  1847.              the 4DOS.INI ScreenRows directive or the SETDOS /R command to
  1848.              set the 4DOS screen length.  Similarly, 4DOS normally detects
  1849.              the width of your screen, but in rare cases with some unusual
  1850.              video boards you may need to use the ScreenColumns directive
  1851.              to set the number of columns explicitly.
  1852.  
  1853.              4DOS never attempts to manipulate your video hardware in order
  1854.              to set the number of rows or columns actually displayed on the
  1855.              screen (the "video mode"); to do so, you must use the software
  1856.              that came with your video board or other software tailored to
  1857.              your system.
  1858.  
  1859.              If you put the screen in 43-line or 50-line mode and find that
  1860.              it still scrolls at the 25th line, you probably have installed
  1861.              an ANSI driver which does not support your extended screen
  1862.              length.  In this case you may need to use a different ANSI
  1863.              driver.
  1864.  
  1865.              The video cursor shape that 4DOS uses is defined as a
  1866.              percentage of a character cell height.  You can set the height
  1867.  
  1868.         -------------------------------------------------------------------
  1869.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 29
  1870.  
  1871.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1872.         -------------------------------------------------------------------
  1873.  
  1874.              independently for insert and overstrike mode with the
  1875.              CursorIns and CursorOver directives in 4DOS.INI or with the
  1876.              SETDOS /S command.  If you don't use either, 4DOS sets the
  1877.              height to 10% of the character cell height for overstrike mode
  1878.              and 100% (a block cursor) for insert mode.
  1879.  
  1880.              If the cursor does not appear the way you want it to, use
  1881.              SETDOS /S to find the values that work for your system.  Some
  1882.              video boards may not give a "smooth" response to varying
  1883.              SETDOS /S values.  For example, a value of 20% may generate a
  1884.              very small cursor while a value of 30% may generate a half-
  1885.              height cursor.  4DOS can't do anything about this behavior, so
  1886.              you will have to experiment to find the cursor values that you
  1887.              want to use.
  1888.  
  1889.              If you are using an EGA or VGA adapter, we encourage you to
  1890.              try UltraVision from Personics Corp.  It gives you excellent
  1891.              control over your video system, includes a wide variety of
  1892.              text-mode screen fonts, has its own ANSI driver, and works
  1893.              superbly with 4DOS.  A special version for laptop and notebook
  1894.              computers dramatically improves the readability of their
  1895.              smaller displays.
  1896.  
  1897.              Most versions of DOS include a copy of ANSI.SYS, a device
  1898.              driver that is normally installed with a DEVICE= line in your
  1899.              CONFIG.SYS file.  There are a number of more powerful and
  1900.              faster versions available as public-domain, shareware, and
  1901.              retail products.  PC Magazine's free utility ANSI.COM can be
  1902.              enabled, disabled, loaded, and unloaded without rebooting, and
  1903.              works well inside windows of multitasking systems.  It is
  1904.              available on most bulletin boards and online systems.  Another
  1905.              excellent choice is ANSI-UV.SYS which is included with
  1906.              UltraVision.
  1907.  
  1908.              4DOS normally detects automatically whether an ANSI driver is
  1909.              installed.  If you have an ANSI driver installed and 4DOS
  1910.              doesn't recognize it, try the command SETDOS /A1 which forces
  1911.              4DOS to use ANSI commands.  Use SETDOS /A2 to tell 4DOS you do
  1912.              not have an ANSI driver installed.  These options can also be
  1913.              set with the ANSI directive in 4DOS.INI.
  1914.  
  1915.              If you have a laptop or notebook computer with a color video
  1916.              board and a monochrome screen, you may need to add a
  1917.              HelpOptions=/M directive to 4DOS.INI, or run HELPCFG to adjust
  1918.              the HELP colors.  (See page 21 for additional information on
  1919.              help colors.)
  1920.  
  1921.  
  1922.  
  1923.  
  1924.  
  1925.         -------------------------------------------------------------------
  1926.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 30
  1927.  
  1928.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1929.         -------------------------------------------------------------------
  1930.  
  1931.         Hard Drives and Floppy Disks
  1932.  
  1933.              4DOS uses your disks for a wide variety of purposes, and many
  1934.              4DOS commands are designed to help you create, move, delete,
  1935.              view, and otherwise manage disk files.  4DOS never tries to
  1936.              manipulate the structure of your hard disk directly.  It never
  1937.              modifies the FAT, root directory, or other system areas of the
  1938.              disk directly, and it doesn't read or write data on your disk
  1939.              itself.  It always calls on DOS to perform these actions, just
  1940.              like most application programs do.  As a result, 4DOS is
  1941.              compatible with all disk sizes, formats, and structures that
  1942.              your DOS version supports.
  1943.  
  1944.              4DOS is also fully compatible with hard disk compression
  1945.              software like DBLSPACE, Stacker, and SuperStor.  Under some
  1946.              compression systems you can display file compression ratios
  1947.              and sort directory displays in compression ratio order using
  1948.              the /C and /O:c switches of the DIR and SELECT commands.  See
  1949.              APPNOTES.DOC for details on using your particular compression
  1950.              software with 4DOS.
  1951.  
  1952.              4DOS will generally access your disk very quickly, but the
  1953.              speed depends on what you are trying to do.  If you find that
  1954.              4DOS is slower at performing a particular function than you
  1955.              are used to, you may have asked it to do more than you ask of
  1956.              traditional DOS commands.  In particular, if you use file
  1957.              descriptions, remember that 4DOS has to access the description
  1958.              file as well as the actual files that you are manipulating.
  1959.  
  1960.              Some users notice that the common commands DEL and DIR appear
  1961.              slower with 4DOS under certain circumstances.  With DEL, this
  1962.              slowdown may be because 4DOS uses a newer method of file
  1963.              deletion instead of a method that is no longer recommended
  1964.              (but is still used by COMMAND.COM).  The new method is
  1965.              necessary to enable 4DOS's display of the names of the files
  1966.              you are deleting, and to support 4DOS's "extended wildcards."
  1967.              You can force 4DOS to use the older method with DEL's /Q
  1968.              option, as long as you don't use extended wildcards.
  1969.  
  1970.              For DIR, any speed decrease is because of 4DOS's directory
  1971.              sorting and description processing.  4DOS must read all
  1972.              filenames and descriptions before it can display any of them.
  1973.              The sort itself is quite fast, but DOS is relatively slow at
  1974.              retrieving the entire list of file names and passing them on
  1975.              to 4DOS.  Once the 4DOS DIR display starts, it should go as
  1976.              fast as or faster than the traditional DIR display.
  1977.  
  1978.              Whenever 4DOS is interrupted by a Ctrl-C or Ctrl-Break, it
  1979.              performs a "disk reset" to clear out DOS's disk buffers and
  1980.              reset internal DOS disk parameters.  This helps ensure that
  1981.  
  1982.         -------------------------------------------------------------------
  1983.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 31
  1984.  
  1985.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1986.         -------------------------------------------------------------------
  1987.  
  1988.              modified data has been written to disk even though the
  1989.              operation was interrupted.  A disk reset is also performed
  1990.              before a REBOOT command.  If you have trouble with recognition
  1991.              of floppy disk changes, with CD-ROM drivers, or with network
  1992.              disk access, you can try forcing 4DOS to perform a disk reset
  1993.              after file processing commands, and before a DIR.  To do so
  1994.              use a DiskReset = Yes directive in 4DOS.INI.  Such problems
  1995.              are very rare and normally DiskReset = Yes is not necessary.
  1996.  
  1997.  
  1998.         4DOS and DOS
  1999.  
  2000.              4DOS is compatible with all versions of MS-DOS and PC-DOS from
  2001.              2.0 through 6.2 and above.  We recommend the use of DOS 3.1 or
  2002.              above.
  2003.  
  2004.              If you use the MS-DOS utility APPEND, you may need to set up
  2005.              some aliases to invoke it; see APPNOTES.DOC for details.
  2006.  
  2007.              If you use the FORMAT /S command from MS-DOS or PC-DOS,
  2008.              version 4.0 or above, FORMAT will copy the file pointed to by
  2009.              the COMSPEC environment variable (see page 17) and name it
  2010.              COMMAND.COM.  In most cases this means that 4DOS.COM will be
  2011.              copied to the floppy disk, but with the name COMMAND.COM.
  2012.              Such a disk should boot properly and start 4DOS, but its
  2013.              contents are sure to be confusing to others.  If you use
  2014.              FORMAT /S with MS-DOS or PC-DOS 4.0 or above, we recommend
  2015.              that you copy COMMAND.COM manually to the floppy disk (you can
  2016.              use an alias or batch file if you format bootable disks
  2017.              frequently), or rename the file that FORMAT copies back to
  2018.              4DOS.COM and place a proper CONFIG.SYS file for 4DOS on the
  2019.              floppy disk.
  2020.  
  2021.  
  2022.              Menus and SET Commands in CONFIG.SYS
  2023.  
  2024.              MS-DOS and PC-DOS 6.0 and above support configuration menus in
  2025.              CONFIG.SYS.  If you use these menus, the menu choice you make
  2026.              is typically stored in an environment variable.  In addition,
  2027.              under MS-DOS and PC-DOS 6.0 and above, and under Novell DOS,
  2028.              you can put SET commands in CONFIG.SYS to set environment
  2029.              variables explicitly.
  2030.  
  2031.              4DOS will automatically retrieve environment variables created
  2032.              in CONFIG.SYS and store them in the environment for use in
  2033.              AUTOEXEC.BAT and other batch files, just as COMMAND.COM does.
  2034.  
  2035.  
  2036.  
  2037.  
  2038.  
  2039.         -------------------------------------------------------------------
  2040.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 32
  2041.  
  2042.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2043.         -------------------------------------------------------------------
  2044.  
  2045.              Novell DOS / DR DOS
  2046.  
  2047.              (This section covers Novell DOS, as well as the older version
  2048.              of the same product, called DR DOS.  Throughout this section,
  2049.              and the rest of the manual, we refer to the product by its
  2050.              newer name, Novell DOS.  Unless otherwise noted, all
  2051.              information below applies to both the older DR DOS and the
  2052.              newer Novell DOS.)
  2053.  
  2054.              4DOS will work properly as the command processor for Novell
  2055.              DOS 3.4 through 7.0 and above.  However, there are certain
  2056.              differences between Novell DOS and MS-DOS which may affect
  2057.              4DOS.  This section covers some of those differences; see
  2058.              APPNOTES.DOC for additional information, including details on
  2059.              using the Novell DOS task switcher, TaskMax, with 4DOS.
  2060.  
  2061.  
  2062.              HILOAD
  2063.  
  2064.              4DOS supports the HILOAD feature using the MS-DOS / PC-DOS
  2065.              command names of LOADHIGH or LH.  To load a TSR high simply
  2066.              use the command:
  2067.  
  2068.                   LH program [options]
  2069.  
  2070.              If you want the command to be called HILOAD for complete
  2071.              Novell DOS compatibility, set up an alias before using it:
  2072.  
  2073.                   alias hiload lh
  2074.  
  2075.              Just as under MS-DOS, LOADHIGH and LH will not work properly
  2076.              unless you have memory management software loaded to provide
  2077.              upper memory block support.  Because Novell DOS does not
  2078.              return any error to 4DOS if a LOADHIGH operation fails, 4DOS
  2079.              cannot report this condition to you.  This means you must use
  2080.              the Novell DOS MEM program or another similar memory mapping
  2081.              utility to determine if your TSR was actually loaded high.
  2082.  
  2083.              The LOADHIGH command's /L and /S switches are included for
  2084.              compatibility with MS-DOS / PC-DOS 6.0 and above, and will not
  2085.              work with Novell DOS.
  2086.  
  2087.  
  2088.              File Passwords
  2089.  
  2090.              4DOS includes support for Novell DOS file passwords.  However,
  2091.              the command syntax used to access files with passwords is
  2092.              slightly different under 4DOS than under Novell DOS
  2093.              COMMAND.COM.
  2094.  
  2095.  
  2096.         -------------------------------------------------------------------
  2097.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 33
  2098.  
  2099.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2100.         -------------------------------------------------------------------
  2101.  
  2102.              The character used to separate passwords from filenames under
  2103.              Novell DOS is a semicolon [;], which 4DOS uses to separate
  2104.              parts of an "include list".  Therefore, to avoid confusion
  2105.              with include lists, 4DOS requires the use of two semicolons to
  2106.              separate the password and filename in any command which
  2107.              supports wildcards.  For example, to delete the file MYDATA
  2108.              which has the password "fred", you would use these commands:
  2109.  
  2110.                   del mydata;fred          for COMMAND.COM
  2111.                   del mydate;;fred         for 4DOS
  2112.  
  2113.              4DOS directory-related commands like MD and CD (or MKDIR and
  2114.              CHDIR) do not use wildcards.  Those commands, and Novell DOS
  2115.              external commands which accept the "filename;password" syntax,
  2116.              use only a single semicolon.
  2117.  
  2118.              Novell DOS hides files which are password-protected.  This
  2119.              means that you must use 4DOS command switches which allow
  2120.              processing of hidden files (COPY /H, DEL /Z, DIR /A, FOR /A,
  2121.              MOVE /H, and SELECT /A) to access a password-protected file
  2122.              under Novell DOS.
  2123.  
  2124.              Passwords are not automatically preserved when copying or
  2125.              moving a file with 4DOS.  However, the hidden attribute will
  2126.              be preserved.  This means that if you move or copy a password-
  2127.              protected file and want it to be visible in its new location
  2128.              or under its new name, you will have to manually remove the
  2129.              hidden attribute with ATTRIB.
  2130.  
  2131.              For example, to password-protect the file MYDATA, copy it to
  2132.              drive A:, and then delete it:
  2133.  
  2134.                   c:\> password mydata /r:fred
  2135.                   c:\> copy /h mydata;;fred a:
  2136.                   c:\> del /z mydata;;fred
  2137.  
  2138.              To unprotect the password-protected file MYDATA:
  2139.  
  2140.                   c:\> password mydata;fred /n
  2141.  
  2142.  
  2143.         Using 4DOS with Task Switchers and Multitaskers
  2144.  
  2145.              Task switchers are programs that allow you to switch quickly
  2146.              among multiple applications, with one application running at a
  2147.              time.  Multitaskers are more complex programs which appear to
  2148.              run multiple applications at the same time, with one or more
  2149.              programs executing "in the background" while you work with
  2150.              another program on the screen.
  2151.  
  2152.  
  2153.         -------------------------------------------------------------------
  2154.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 34
  2155.  
  2156.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2157.         -------------------------------------------------------------------
  2158.  
  2159.              This section gives you some important general tips on using
  2160.              4DOS with task switchers and multitaskers, and includes a
  2161.              specific discussion of Microsoft Windows.  If you are using
  2162.              DESQview, see APPNOTES.DOC for additional information.  See
  2163.              page 42 for a complete discussion on using 4DOS under OS/2.
  2164.  
  2165.              For convenience, in the text below we will refer to both
  2166.              multitaskers and task switchers as "multitaskers," and to each
  2167.              window or partition they use as a "window," even though some
  2168.              do not have windowed displays.
  2169.  
  2170.              4DOS works well as both the primary shell (loaded when your
  2171.              system boots) and the secondary shell (loaded in a window)
  2172.              with most multitaskers.  (See Chapter 1 of your Reference
  2173.              Manual for more information about primary and secondary
  2174.              shells.)
  2175.  
  2176.  
  2177.              Creating a 4DOS Window
  2178.  
  2179.              Most multitaskers have a pre-configured "DOS" window.  In some
  2180.              cases, this window always runs COMMAND.COM.  In others, it
  2181.              runs the default command processor defined when your system
  2182.              boots.  We recommend that you always set up a 4DOS window
  2183.              explicitly, with the configuration you want, rather that
  2184.              relying on the multitasker's generic "DOS" window.
  2185.  
  2186.              Many multitaskers also run the command processor when you
  2187.              start certain kinds of windows, such as windows that run a
  2188.              .BAT file.  In general, this use of the command processor is
  2189.              transparent.  The multitasker will run 4DOS for you
  2190.              automatically when it needs to, and you won't need to do
  2191.              anything about it.
  2192.  
  2193.              If you find that your multitasker is running COMMAND.COM when
  2194.              you meant to run 4DOS, check the COMSPEC setting that is in
  2195.              effect when you start the multitasker (see page 17 for details
  2196.              on COMSPEC).  You may also need to check the way a particular
  2197.              window is configured.
  2198.  
  2199.              When you set up a 4DOS window, be sure to specify the full
  2200.              path to 4DOS.COM and any startup options you want (see page 15
  2201.              for information on startup options for secondary shells).
  2202.  
  2203.  
  2204.              Parameters for 4DOS Windows
  2205.  
  2206.              To set parameters (swapping, alias space, etc.) to be used by
  2207.              all 4DOS secondary shells run by your multitasker, use the
  2208.              [Secondary] section in 4DOS.INI.  To set these parameters
  2209.  
  2210.         -------------------------------------------------------------------
  2211.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 35
  2212.  
  2213.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2214.         -------------------------------------------------------------------
  2215.  
  2216.              separately for a specific window, create a copy of 4DOS.INI
  2217.              just for that window and use the @d:\path\inifile option on
  2218.              your command line for the window (see page 11).  To change the
  2219.              configuration of a specific window without creating a separate
  2220.              copy of 4DOS.INI, use the //iniline option on your command
  2221.              line for the window (see the example below).
  2222.  
  2223.              4DOS allows you to place a command to be executed as the last
  2224.              parameter on your 4DOS command line.  This command is executed
  2225.              before 4DOS displays its first prompt.  You can use this
  2226.              feature to run a batch file (or any other command) each time a
  2227.              4DOS window is started by your multitasker.  For example, if
  2228.              you are setting up 4DOS to run as a DOS application under
  2229.              Windows 3.1, your setup for a 4DOS program item (or in a .PIF
  2230.              file for 4DOS) might look like this:
  2231.  
  2232.                   Program Name:  c:\4dos\4dos.com
  2233.                   Parameters:    //swapping=f:\ c:\winstart.btm
  2234.  
  2235.              This tells Windows to load 4DOS, includes a 4DOS.INI directive
  2236.              to tell 4DOS to swap to drive F, and passes 4DOS the command
  2237.              C:\WINSTART.BTM.  You can place commands in WINSTART.BTM to be
  2238.              executed whenever such a window is started (for example, to
  2239.              change your PROMPT to show that you're in a window, or to load
  2240.              a TSR for just that window).  The command to be executed
  2241.              (C:\WINSTART.BTM in this example), must be the last thing on
  2242.              the 4DOS command line; no 4DOS switches or options can be
  2243.              placed after it because anything after the command will be
  2244.              interpreted as parameters for the command.
  2245.  
  2246.              This feature is similar to what's provided by the 4START batch
  2247.              file, but 4START is executed every time 4DOS loads, whereas a
  2248.              file like WINSTART will be executed only when a 4DOS window is
  2249.              started from your multitasker.  A batch file started this way
  2250.              will be run after 4START.
  2251.  
  2252.         ##   If you wish, you can use 4START to accomplish the same goal.
  2253.              However, in order to do so you must have a way to detect
  2254.              whether the multitasker is running, so that you can select the
  2255.              appropriate commands to execute in 4START.  If you are running
  2256.              DESQview or Windows, you can use the 4DOS internal variables
  2257.              _DV and _WIN respectively to test this condition.  For
  2258.              example, the following lines could be used in 4START to change
  2259.              the prompt for DESQview command-line sessions:
  2260.  
  2261.                   iff "%_DV" != "0"
  2262.                      prompt [DV] $p$g
  2263.                   else
  2264.                      prompt $p$g
  2265.                   endiff
  2266.  
  2267.         -------------------------------------------------------------------
  2268.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 36
  2269.  
  2270.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2271.         -------------------------------------------------------------------
  2272.  
  2273.         ##   Multitasking and KEYSTACK
  2274.  
  2275.              If you use KEYSTACK inside a window of a multitasker, and the
  2276.              KSTACK.COM program has been loaded before the multitasker, you
  2277.              may find that stacked keystrokes "bleed through" from one
  2278.              window to another.  You can solve this problem by loading
  2279.              KSTACK.COM in a startup batch file for each window where it is
  2280.              needed.  If KSTACK is loaded before the multitasker as well,
  2281.              include a /I on the command line when loading KSTACK inside
  2282.              the window.  If you don't, KSTACK will detect that it is
  2283.              already installed and will not install again.
  2284.  
  2285.  
  2286.          ## !     Multitasking and Disk Swapping
  2287.  
  2288.              When 4DOS is loaded as the primary shell, it acts as a
  2289.              "traffic cop" for copies of the transient portion of 4DOS
  2290.              swapped to disk.  Each secondary shell is assigned a unique
  2291.              shell number, which is normally used as the extension for its
  2292.              disk swap file name (4DOSSWAP.001, 4DOSSWAP.002, etc.).  These
  2293.              shell numbers avoid file name conflicts between multiple
  2294.              copies of 4DOS running in different windows but creating swap
  2295.              files in the same disk directory.
  2296.  
  2297.              However, if 4DOS is not loaded before the multitasker, this
  2298.              capability will not be available.  In this case, the copy of
  2299.              4DOS in each window will use a swap file called 4DOSSWAP.000.
  2300.              To avoid this conflict, you must either use the UniqueSwapName
  2301.              directive in 4DOS.INI, or force every copy of 4DOS to place
  2302.              its swap file in its own unique directory by using the
  2303.              "Swapping=d:\path" directive in 4DOS.INI.  If you don't follow
  2304.              this rule, your system will hang when you switch windows or
  2305.              when you exit from an application.
  2306.  
  2307.              This problem will occur only in those rare situations where
  2308.              4DOS is loaded within a window but is not loaded as your
  2309.              primary shell, and if 4DOS disk swapping is used in more than
  2310.              one window at a time.  Note that since the default swapping
  2311.              option uses disk swapping if insufficient EMS or XMS memory is
  2312.              available, you can be invoking disk swapping in your
  2313.              multitasker's windows without specifically requesting it.
  2314.  
  2315.  
  2316.              4DOS and Microsoft Windows
  2317.  
  2318.              4DOS works well as both the primary shell, loaded before
  2319.              Windows, and as a secondary shell loaded inside any window.
  2320.              It works in any Windows mode (Real, Standard, or Enhanced).
  2321.              The general information about multitaskers beginning on page
  2322.  
  2323.  
  2324.         -------------------------------------------------------------------
  2325.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 37
  2326.  
  2327.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2328.         -------------------------------------------------------------------
  2329.  
  2330.              34 applies to Windows as well.  You should read it before
  2331.              continuing with this section.
  2332.  
  2333.              This section gives you the basic information you need to use
  2334.              4DOS with Windows.  For additional details and updated
  2335.              information be sure to check APPNOTES.DOC.  All of the
  2336.              information in this section applies to both the standard
  2337.              single-user version of Windows and the peer-to-peer network
  2338.              version, Windows for Workgroups.
  2339.  
  2340.              To run 4DOS as a secondary shell from within Windows, you will
  2341.              need to create a desktop object for it.  The generic "MS-DOS
  2342.              Prompt" object supplied by Microsoft will normally run
  2343.              COMMAND.COM.
  2344.  
  2345.              You can set up a 4DOS object from the Program Manager's File /
  2346.              New menu selection.  To do so, simply create a new program
  2347.              item and set the command line to d:\path\4DOS.COM (use the
  2348.              appropriate drive and path for your system).  You can put the
  2349.              name of a batch file at the end of the command line if you
  2350.              want to run some specific commands when 4DOS starts under
  2351.              Windows (see page 36 for details).
  2352.  
  2353.              When you create a new item in this way, it will be initialized
  2354.              with a standard DOS icon (the word "DOS" inside a rectangle).
  2355.              To install a specific icon for 4DOS, use the Program Manager's
  2356.              File / Properties menu selection.  Click on the Change Icon
  2357.              button and type in the full path name of your new 4DOS icon
  2358.              file.  We supply two Windows icons with 4DOS:  4DOS.ICO for
  2359.              color displays, and 4DOSM.ICO for monochrome displays.  You
  2360.              can create your own icon with any icon editor.
  2361.  
  2362.              For more flexibility, you can use the Windows PIF editor to
  2363.              create a 4DOS.PIF file.  We have included a sample .PIF file
  2364.              on the distribution diskette.  You must edit this file and
  2365.              make it correspond to your system before you use it to run
  2366.              4DOS.
  2367.  
  2368.              4DOS will work properly in either a full-screen or a windowed
  2369.              session.  The .PIF file determines the mode that 4DOS will
  2370.              start in.  If you don't use a .PIF file, 4DOS will start in
  2371.              the mode set in the _DEFAULT.PIF file provided with Windows.
  2372.              You can set up multiple .PIF files if you need different
  2373.              session types (for example, one for windowed and one for full-
  2374.              screen sessions).
  2375.  
  2376.              Your batch files can determine whether they are running in a
  2377.              secondary shell under Windows, and the current Windows mode,
  2378.              with the 4DOS _WIN internal variable.
  2379.  
  2380.  
  2381.         -------------------------------------------------------------------
  2382.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 38
  2383.  
  2384.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2385.         -------------------------------------------------------------------
  2386.  
  2387.              You can easily set up the Windows File Manager to make .BTM
  2388.              files "executable."  Open your WIN.INI file with any editor
  2389.              and find the section labeled [extensions].  Add the following
  2390.              line to the end of the section:
  2391.  
  2392.                   btm=c:\4dos\4dos.com /c ^.btm
  2393.  
  2394.              (adjust this to show the proper path for 4DOS.COM on your
  2395.              system).  It is not possible to execute .BTM files from the
  2396.              Program Manager by modifying the Programs= setting in WIN.INI;
  2397.              if you try to do so, the system will hang when you attempt to
  2398.              actually invoke a .BTM file.
  2399.  
  2400.              For information on resolving memory allocation problems with
  2401.              Windows, see page 58.
  2402.  
  2403.  
  2404.         Using 4DOS on a Network
  2405.  
  2406.              4DOS works well with DOS-compatible networks.  This section
  2407.              will give you some tips on using 4DOS on a network, and on the
  2408.              proper locations for 4DOS files on a network.
  2409.  
  2410.              In general, you'll find that you can load and run your network
  2411.              software normally under 4DOS.  Network drives will be
  2412.              accessible as normal drives once the network is loaded, and
  2413.              files on the network will be accessible just as if they were
  2414.              on a local hard disk.
  2415.  
  2416.              Some networks support file and directory names beginning with
  2417.              a double backslash, or with a server name followed by a colon,
  2418.              to identify files by their location on the network.  4DOS
  2419.              detects such names and passes them through to the network
  2420.              unaltered, allowing the network software to process them
  2421.              properly.
  2422.  
  2423.              In rare situations, you may have trouble loading network
  2424.              software under 4DOS.  To the best of our knowledge, all DOS-
  2425.              compatible networks work with 4DOS.  If yours doesn't, our
  2426.              experience suggests that the most common cause is a network
  2427.              bug, an old version of your network software, or a conflict in
  2428.              the way 4DOS and your network are configured.  Most bugs have
  2429.              now been corrected by network vendors, and should not appear
  2430.              on your system.  If you have any questions about compatibility
  2431.              with your particular network, check for a listing in
  2432.              APPNOTES.DOC, and feel free to contact our technical support
  2433.              department for additional assistance.
  2434.  
  2435.              If you need to boot a diskless workstation from a network
  2436.              drive, you must have the network drive accessible at boot
  2437.  
  2438.         -------------------------------------------------------------------
  2439.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 39
  2440.  
  2441.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2442.         -------------------------------------------------------------------
  2443.  
  2444.              time.  If this condition is satisfied (so 4DOS can find its
  2445.              files on the network drives), the normal approach can be used
  2446.              to start 4DOS from the network.  You can also configure 4DOS
  2447.              so that it boots from the floppy disk image used to start your
  2448.              diskless workstation, then retrieves its files from the
  2449.              network.  For complete details on starting 4DOS on a diskless
  2450.              workstation under Novell Netware see APPNOTES.DOC.  The
  2451.              approach described there can generally be used for other
  2452.              networks as well.
  2453.  
  2454.              Some networks with large server disk drives (256 MB or more)
  2455.              may report total and free disk space values that are too small
  2456.              if the DIR command, the FREE command, or the @DISKFREE,
  2457.              @DISKTOTAL, or @DISKUSED variable functions are used on the
  2458.              server drive.  If this occurs, it is because DOS does not
  2459.              provide a way for the network software to return larger values
  2460.              to 4DOS.
  2461.  
  2462.         ! ## When you use 4DOS with your network software loaded you need
  2463.              to ensure that two users do not use the same directory
  2464.              simultaneously for secondary shell disk swap files.  If they
  2465.              do, the filenames (4DOSSWAP.001, etc.) will conflict and each
  2466.              user will write over the other's files, possibly causing one
  2467.              or both systems to hang.  In most cases you will find this is
  2468.              not a problem, because most network users swap 4DOS to XMS or
  2469.              EMS memory or a local hard disk.  However if you do swap to a
  2470.              network drive, you can prevent a conflict with the
  2471.              UniqueSwapName directive in 4DOS.INI, or by using the Swapping
  2472.              directive to assign each user's swap files to a different
  2473.              directory.  For this reason, 4DOS will automatically enable
  2474.              UniqueSwapName if it detects that you are swapping to a
  2475.              network drive.
  2476.  
  2477.  
  2478.              4DOS and Novell Netware
  2479.  
  2480.              This section gives you basic information for using 4DOS with
  2481.              Netware.  For additional details and updated information be
  2482.              sure to check APPNOTES.DOC.  The information below applies to
  2483.              Netware, but not to Novell's peer-to-peer networking software,
  2484.              Netware Lite.
  2485.  
  2486.              4DOS works well with Netware, and compatibility problems
  2487.              should be very rare.  Novell's newer NETX shells are more
  2488.              reliable than the older NET3 / NET4 / NET5.  We recommend that
  2489.              you use NETX with 4DOS whenever possible.
  2490.  
  2491.              4DOS includes a 4DOS.INI directive for Netware, NetwareNames.
  2492.              You must set NetwareNames = Yes on systems which load Netware
  2493.              to avoid problems with destroyed environment variables during
  2494.  
  2495.         -------------------------------------------------------------------
  2496.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 40
  2497.  
  2498.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2499.         -------------------------------------------------------------------
  2500.  
  2501.              LOGIN.  Setting NetwareNames = Yes will increase the resident
  2502.              size of 4DOS by 112 bytes.
  2503.  
  2504.              Under Netware version 3 and above, 4DOS commands which scan a
  2505.              directory tree (e.g. COPY /S, DIR /S, GLOBAL, etc.) may stop
  2506.              without scanning the entire tree, and without displaying an
  2507.              error message.  This happens when such commands exceed the
  2508.              size of the directory search table on your server; this is a
  2509.              Netware design issue and not a 4DOS bug.  You can fix this
  2510.              problem by having your system administrator increase the
  2511.              Maximum Oustanding NCP Searches parameter for the server in
  2512.              question.
  2513.  
  2514.              4DOS can be set up to run on Novell Netware diskless
  2515.              workstations which boot from the server.  To do so, you must
  2516.              make several changes to 4DOS.INI and your other startup files.
  2517.              See APPNOTES.DOC for complete details.
  2518.  
  2519.  
  2520.  
  2521.  
  2522.  
  2523.  
  2524.  
  2525.  
  2526.  
  2527.  
  2528.  
  2529.  
  2530.  
  2531.  
  2532.  
  2533.  
  2534.  
  2535.  
  2536.  
  2537.  
  2538.  
  2539.  
  2540.  
  2541.  
  2542.  
  2543.  
  2544.  
  2545.  
  2546.  
  2547.  
  2548.  
  2549.  
  2550.  
  2551.  
  2552.         -------------------------------------------------------------------
  2553.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 41
  2554.  
  2555.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  2556.         -------------------------------------------------------------------
  2557.  
  2558.  
  2559.         CHAPTER 4 / USING 4DOS UNDER OS/2
  2560.  
  2561.  
  2562.         4DOS offers almost unlimited flexibility for your OS/2 DOS
  2563.         sessions, and has been specifically designed to take advantage of
  2564.         OS/2 features wherever possible.  However, to use DOS, 4DOS, and
  2565.         OS/2 successfully requires some planning if you want to get all the
  2566.         power possible out of each operating environment.
  2567.  
  2568.         This chapter explains some of the planning you should do and some
  2569.         of the techniques you can use to get everything working together
  2570.         correctly.  It covers:
  2571.  
  2572.              * Configuring OS/2 version 1.x for 4DOS (see page 43).
  2573.  
  2574.              * Configuring OS/2 version 2.x DOS sessions (Virtual DOS
  2575.                Machines) for 4DOS (see page 43).
  2576.  
  2577.              * Arranging your 4DOS.INI, 4START, 4EXIT, and AUTOEXEC.BAT
  2578.                files for use in the multiple DOS sessions available under
  2579.                OS/2 2.x (see page 47).
  2580.  
  2581.              * Setting up temporary DOS sessions in OS/2 2.x to run a
  2582.                single DOS command or application (see page 48).
  2583.  
  2584.              * Adjusting 4DOS.INI, 4START, 4EXIT, and AUTOEXEC.BAT when
  2585.                you can boot under either DOS or OS/2 using OS/2's Dual
  2586.                Boot or Boot Manager features (see page 49).
  2587.  
  2588.         Throughout this section, we assume that you want to use 4DOS as
  2589.         your command processor in all of these situations.  Also, we assume
  2590.         that you have installed 4DOS in the C:\4DOS directory (alter the
  2591.         SHELL= and DOS_SHELL settings below appropriately if 4DOS is
  2592.         installed in a different directory).
  2593.  
  2594.         If you are using OS/2's Dual Boot or Boot Manager, you will have
  2595.         (at least) two copies of CONFIG.SYS and AUTOEXEC.BAT on your
  2596.         computer, one for booting OS/2 and OS/2 DOS sessions, and the other
  2597.         for booting DOS without OS/2.  See the section on Dual Boot and
  2598.         Boot Manager on page 49 for details on where these two sets of
  2599.         files are stored.  Unless otherwise specified, references in this
  2600.         section to CONFIG.SYS and AUTOEXEC.BAT refer to the OS/2 versions
  2601.         of these files.
  2602.  
  2603.         Before you read this section, read through Chapter 1 / Installation
  2604.         (see page 4) for details on installing 4DOS and modifying the
  2605.         SHELL= statement in your OS/2 CONFIG.SYS file.
  2606.  
  2607.  
  2608.  
  2609.         -------------------------------------------------------------------
  2610.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 42
  2611.  
  2612.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  2613.         -------------------------------------------------------------------
  2614.  
  2615.  
  2616.  
  2617.         OS/2 Version 1.x
  2618.  
  2619.              Under OS/2 version 1.x, you can install 4DOS simply by setting
  2620.              the SHELL= line in CONFIG.SYS.  This command determines how
  2621.              4DOS starts when you invoke the DOS Compatibility Box from the
  2622.              OS/2 desktop.
  2623.  
  2624.              You can use the [options] portion of the SHELL command to
  2625.              select a special 4DOS.INI file and to set any other 4DOS
  2626.              command line options you choose.  In essence, you can set up
  2627.              4DOS just as you would if you installed it on a DOS system
  2628.              without OS/2.
  2629.  
  2630.              You can skip the sections below which explain how to configure
  2631.              DOS sessions under OS/2 version 2.x.  If you are using the
  2632.              OS/2 version 1.x Dual Boot capability, you should read the
  2633.              section on Dual Boot and Boot Manager (page 49).
  2634.  
  2635.  
  2636.         OS/2 Version 2.x
  2637.  
  2638.              Under OS/2 version 2.x, you can have multiple objects which
  2639.              start DOS sessions, also called Virtual DOS Machines (VDMs).
  2640.              These may include objects in the Command Prompts window,
  2641.              objects for "migrated applications," objects for DOS and
  2642.              Windows applications, and objects for batch files.
  2643.  
  2644.              Assuming you set up your VDM objects as described here, 4DOS
  2645.              is loaded as a primary shell each time a DOS session starts.
  2646.              4DOS will process 4DOS.INI, execute your 4START file if you
  2647.              have one, and execute AUTOEXEC.BAT.  When the session is
  2648.              closed with the EXIT command, 4DOS will run your 4EXIT file if
  2649.              you have one.  You can start any number of DOS sessions and
  2650.              (within the limits of system resources) have as many running
  2651.              simultaneously as you like.
  2652.  
  2653.              This is fundamentally different from what happens when you
  2654.              boot your computer under DOS or OS/2 1.x.  In these
  2655.              environments there is only one 4DOS primary shell,
  2656.              AUTOEXEC.BAT is only executed once each time you boot, and so
  2657.              on.  OS/2 version 2.x gives you much more flexibility, but
  2658.              that flexibility requires planning to get the most out of
  2659.              4DOS.
  2660.  
  2661.              For example, you can have all your DOS sessions use the same
  2662.              AUTOEXEC.BAT file, or you can have different versions of
  2663.              AUTOEXEC.BAT for different sessions.  The same is true of the
  2664.              other startup and exit files (4DOS.INI, 4START, and 4EXIT).
  2665.  
  2666.         -------------------------------------------------------------------
  2667.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 43
  2668.  
  2669.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  2670.         -------------------------------------------------------------------
  2671.  
  2672.              This section and the sections below discuss how to set up
  2673.              objects for your DOS sessions, and how to arrange your startup
  2674.              and exit files so that 4DOS will do just what you want it to
  2675.              in each DOS session.
  2676.  
  2677.  
  2678.              Settings for DOS Sessions
  2679.  
  2680.              Each VDM object contains its own information about how to
  2681.              start DOS for that session.  In essence, each object has its
  2682.              own CONFIG.SYS file built into it.  The information attached
  2683.              to an object which indicates how to start DOS is called its
  2684.              DOS Settings.
  2685.  
  2686.              You can modify these settings using OS/2's Settings notebook.
  2687.              To do so, click the right mouse button in the object.  When
  2688.              the popup menu appears, click the left mouse button on the
  2689.              small arrow to the right of the Open selection, then again on
  2690.              the Settings selection on the submenu.
  2691.  
  2692.              Once the Settings notebook is open, use the Program page to
  2693.              modify the object's program name, startup directory, and
  2694.              command line parameters.  The Session page lets you set the
  2695.              session type.  Other pages let you adjust other configuration
  2696.              data for the object.
  2697.  
  2698.              To modify the DOS settings, use the button with that legend on
  2699.              the Session page of the notebook.  Clicking on this button
  2700.              opens the DOS settings dialog box.  To modify an individual
  2701.              setting, click on the setting name in the list box at the
  2702.              left, then click on the value window to the right and enter
  2703.              the new value.  Settings with choice values (such as "On" and
  2704.              "Off") will show buttons for the value, rather than a text
  2705.              window.
  2706.  
  2707.              In a new object, each DOS setting starts out with a default
  2708.              value taken from your CONFIG.SYS file.  For settings which
  2709.              have no corresponding command in CONFIG.SYS, OS/2 uses a
  2710.              built-in default value.
  2711.  
  2712.              For example, the DOS_SHELL setting, which specifies the
  2713.              command processor to use for a DOS session, defaults to the
  2714.              value on the SHELL= line in CONFIG.SYS.  Changing the SHELL=
  2715.              line changes the default DOS_SHELL value for all new DOS
  2716.              sessions (as usual, changes to CONFIG.SYS are only effective
  2717.              after you reboot the system).
  2718.  
  2719.              However, the HW_TIMER setting (which tells OS/2 whether to
  2720.              allow the session to manipulate the hardware timer), always
  2721.              defaults to OFF.  The default cannot be changed in CONFIG.SYS.
  2722.  
  2723.         -------------------------------------------------------------------
  2724.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 44
  2725.  
  2726.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  2727.         -------------------------------------------------------------------
  2728.  
  2729.              Modifying a setting whose default is specified in CONFIG.SYS,
  2730.              such as DOS_SHELL, breaks the "link" between that setting and
  2731.              the default in CONFIG.SYS.  After the modification, changes
  2732.              made to the default in CONFIG.SYS will not affect the object
  2733.              at all.
  2734.  
  2735.              For example, to set up 4DOS as your default DOS command
  2736.              processor for OS/2 DOS sessions you might include this line in
  2737.              the OS/2 CONFIG.SYS file:
  2738.  
  2739.                   SHELL= C:\4DOS\4DOS\COM C:\4DOS /P
  2740.  
  2741.              If you then create a new DOS session object, its DOS_SHELL
  2742.              setting will reflect the value from the SHELL= line.  Now
  2743.              suppose you modify the DOS_SHELL setting for that object so
  2744.              that it reads:
  2745.  
  2746.                   C:\4DOS\4DOS.COM C:\4DOS /L /P
  2747.  
  2748.              At this point the "link" between your object and CONFIG.SYS is
  2749.              broken.  If you move 4DOS to a different directory and modify
  2750.              the SHELL= line in CONFIG.SYS, the object's DOS_SHELL setting
  2751.              will not be changed, and the object will no longer work
  2752.              properly.  In order to correct this you will have to manually
  2753.              modify the DOS_SHELL setting for that object.
  2754.  
  2755.              You can return any DOS setting to the current default value at
  2756.              any time.  To do so, open the DOS Settings dialog box,
  2757.              highlight the setting name, and click on the Default button.
  2758.              This replaces the value of the setting with the value OS/2
  2759.              read from CONFIG.SYS when you last booted, or with the value
  2760.              from OS/2's standard defaults.  For settings which have a
  2761.              default in CONFIG.SYS, this re-establishes the link between
  2762.              the object and CONFIG.SYS, and subsequent changes you make in
  2763.              CONFIG.SYS will again be reflected in the setting for that
  2764.              object each time you reboot.
  2765.  
  2766.  
  2767.              Configuring DOS Sessions for 4DOS
  2768.  
  2769.              To create a VDM object that gives you a standard 4DOS prompt,
  2770.              first place an asterisk [*] in the Program Name field (on the
  2771.              Program page in the Settings notebook).  This tells OS/2 to
  2772.              load the DOS command processor and go to a prompt instead of
  2773.              running a specific DOS application.  Then go to the Session
  2774.              page and set the session type to DOS Full Screen or DOS
  2775.              Window.
  2776.  
  2777.              Next, click on the DOS Settings button and set up the DOS
  2778.              settings for the object.  4DOS will run properly with default
  2779.  
  2780.         -------------------------------------------------------------------
  2781.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 45
  2782.  
  2783.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  2784.         -------------------------------------------------------------------
  2785.  
  2786.              DOS settings, but you may want to check that the DOS_SHELL
  2787.              setting is correct, because this setting determines which
  2788.              command processor OS/2 will load when the object is used to
  2789.              start a session.
  2790.  
  2791.              DOS_SHELL is formatted just like the SHELL= line in CONFIG.SYS
  2792.              (see page 11), but without the characters "SHELL=".  The
  2793.              DOS_SHELL setting should always include the COMSPEC path (see
  2794.              page 17 for an explanation of the COMSPEC path).  For example,
  2795.              you might set DOS_SHELL to:
  2796.  
  2797.                   C:\4DOS\4DOS.COM C:\4DOS /P
  2798.  
  2799.              If you've set up CONFIG.SYS for 4DOS as described in Chapter
  2800.              1, any new VDM objects you create will automatically use the
  2801.              correct DOS_SHELL setting for 4DOS.  However, VDM objects
  2802.              which existed before you modified CONFIG.SYS may list
  2803.              COMMAND.COM in the DOS_SHELL setting.  To correct the setting
  2804.              so that 4DOS is used for these objects, modify DOS_SHELL in
  2805.              each object to point to 4DOS, as shown in the example above,
  2806.              or change DOS_SHELL back to the default value with the Default
  2807.              button.
  2808.  
  2809.              You can customize any object with optional 4DOS command line
  2810.              switches, such as @ininame, or //iniline (see page 11 for more
  2811.              details).  These switches can be placed at the end of the
  2812.              DOS_SHELL setting, or in the Parameters field in the Program
  2813.              window.
  2814.  
  2815.              For example, your Program page might have the following
  2816.              settings for a standard 4DOS prompt, using a special .INI file
  2817.              for this session:
  2818.  
  2819.                   Program Name:       *
  2820.                   Parameters:         @C:\4DOS\OS2VDM.INI
  2821.                   Working Directory:  C:\
  2822.  
  2823.              You can run any alias, internal command, DOS application, or
  2824.              batch file directly from a 4DOS VDM object.  To do so, place
  2825.              the command to be executed as the last item in the Parameters
  2826.              field for the object.  4DOS will execute the command and then
  2827.              display a prompt.  4DOS will execute the command after it
  2828.              processes your 4START file (if any) and AUTOEXEC.BAT.
  2829.  
  2830.              If you precede the command name with /C, 4DOS will exit and
  2831.              return to the OS/2 desktop when the command is finished.  This
  2832.              is a "temporary" VDM, described in more detail on page 48.
  2833.              You can also make 4DOS exit when the command is complete by
  2834.              invoking a batch file or alias which ends with the EXIT
  2835.              command.
  2836.  
  2837.         -------------------------------------------------------------------
  2838.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 46
  2839.  
  2840.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  2841.         -------------------------------------------------------------------
  2842.  
  2843.              You can create an object which runs a DOS program by placing
  2844.              the program name (including drive and path) in the object's
  2845.              Program Name field.  When you select the object, OS/2 will
  2846.              automatically start a temporary VDM to run the program.  See
  2847.              page 48 for additional details.
  2848.  
  2849.         ##   Once you have created a 4DOS object on your desktop, you may
  2850.              wish to create a menu item on the desktop menu to run it.  You
  2851.              can do so using OS/2's menu editing facilities.  If you do,
  2852.              when you start 4DOS from the menu OS/2 will pass the name of
  2853.              the desktop directory as a command line argument to 4DOS.
  2854.              This directory name will appear to 4DOS as a COMSPEC path or a
  2855.              command to be executed, and may result in an error message
  2856.              when the session is started from the desktop menu.  To avoid
  2857.              this, add a single % sign in the Parameters field for the
  2858.              object.  The % sign will prevent OS/2 from passing the
  2859.              directory name, but will be treated as a null parameter by
  2860.              4DOS.
  2861.  
  2862.  
  2863.              4DOS.INI
  2864.  
  2865.              Each time you start a DOS session, 4DOS will search for
  2866.              4DOS.INI in the directory where 4DOS.COM is stored, then in
  2867.              the root directory of the boot drive.
  2868.  
  2869.              In most cases, the best strategy is to put 4DOS.INI in the
  2870.              same directory as 4DOS.COM and make sure your COMSPEC setting
  2871.              is correct as described above.  4DOS will use this 4DOS.INI
  2872.              file by default for all DOS sessions.
  2873.  
  2874.              To use a different .INI file for sessions started from a
  2875.              particular object, include an @ininame parameter on the
  2876.              DOS_SHELL setting for that object as described in the previous
  2877.              section.  Be sure to include the full path and name of the
  2878.              file.  To modify specific 4DOS.INI settings for sessions
  2879.              started from an object, use one or more //iniline parameters
  2880.              on the DOS_SHELL setting for the object.  For objects with a
  2881.              [*] in the program name field, the @ininame or //iniline
  2882.              parameters may be placed at the beginning of the Parameters
  2883.              field if you wish, rather than in the DOS_SHELL setting.
  2884.  
  2885.              You can also use the @ininame parameter on your SHELL= line in
  2886.              the OS/2 CONFIG.SYS file to change the default location of
  2887.              4DOS.INI for all DOS sessions run under OS/2.  If you do so,
  2888.              remember that changes made in CONFIG.SYS will only take effect
  2889.              after your next reboot, and will not affect existing objects
  2890.              whose DOS_SHELL setting has been changed from its default
  2891.              value.
  2892.  
  2893.  
  2894.         -------------------------------------------------------------------
  2895.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 47
  2896.  
  2897.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  2898.         -------------------------------------------------------------------
  2899.  
  2900.              AUTOEXEC.BAT, 4START, and 4EXIT
  2901.  
  2902.              Each time you start a DOS session, 4DOS will search for 4START
  2903.              and 4EXIT in the directory where 4DOS.COM is stored, then in
  2904.              the root directory of the OS/2 boot drive.  It will search for
  2905.              AUTOEXEC.BAT in the root directory of the OS/2 boot drive.
  2906.              Therefore, the same 4START, 4EXIT, and AUTOEXEC.BAT files will
  2907.              normally be used for all DOS sessions.  You can override these
  2908.              defaults with the 4StartPath and AutoExecPath directives in
  2909.              4DOS.INI.
  2910.  
  2911.              To select different 4START, 4EXIT, and AUTOEXEC.BAT files for
  2912.              a particular object, place the files for that object in a
  2913.              directory that is not one of the default directories described
  2914.              above.  Then create a new 4DOS.INI file for that object, using
  2915.              the 4StartPath and / or AutoExecPath directives to point to
  2916.              the new directory, or use a //4StartPath or //AutoExecPath
  2917.              directive in the DOS_SHELL setting or parameters field for the
  2918.              object.
  2919.  
  2920.              To disable the default 4START, 4EXIT, or AUTOEXEC.BAT files
  2921.              for a particular object without selecting alternate files, use
  2922.              the techniques described above to tell 4DOS to load these
  2923.              files from a directory where they do not exist.  All three
  2924.              files are optional, so if they do not exist in the directory
  2925.              specified by 4StartPath or AutoExecPath, they will not be
  2926.              executed.
  2927.  
  2928.              Remember that if your 4START and 4EXIT files have the
  2929.              extension .BTM, they may be executed by both 4DOS and 4OS2.
  2930.              If so, you may need to customize them for DOS mode and OS/2
  2931.              mode.  You can use the internal variable %_DOS to separate
  2932.              commands for each operating system.  For example:
  2933.  
  2934.                   iff "%_DOS" == "DOS"
  2935.                      rem Commands for DOS only go here
  2936.                   else
  2937.                      rem Commands for OS/2 only go here
  2938.                   endiff
  2939.  
  2940.  
  2941.         "Temporary" VDMs
  2942.  
  2943.              So far, we have discussed starting a VDM to run 4DOS and get
  2944.              to the DOS prompt.  OS/2 version 2.x also lets you start a
  2945.              temporary VDM, for example to run a DOS application or batch
  2946.              file from a desktop object.
  2947.  
  2948.              In a temporary VDM, 4DOS is still loaded as the primary shell
  2949.              even though it is being invoked to run just a single command
  2950.  
  2951.         -------------------------------------------------------------------
  2952.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 48
  2953.  
  2954.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  2955.         -------------------------------------------------------------------
  2956.  
  2957.              or application.  This primary 4DOS shell is also a "transient"
  2958.              shell that exits (back to OS/2) when its job is done.
  2959.              Temporary VDMs are created automatically by OS/2 if you set up
  2960.              an object with the Program Name set to the name of a DOS
  2961.              application.  You can also start them yourself by using a /C
  2962.              (see page 16) in the Parameters field for a standard 4DOS
  2963.              object.
  2964.  
  2965.              For example, to create a temporary VDM to run your word
  2966.              processor you might set up an object like this:
  2967.  
  2968.                   Program Name:       E:\WORDPROC\WP.EXE
  2969.                   Parameters:         [blank]
  2970.                   Working Directory:  D:\LETTERS
  2971.  
  2972.              You usually won't want a temporary VDM to load all the memory-
  2973.              resident utilities and execute all the commands that you want
  2974.              when you are setting up a DOS prompt.  Most often, you will
  2975.              want to set up a simple VDM, run the command, and exit as
  2976.              quickly as possible.  The 4DOS internal variable %_TRANSIENT
  2977.              makes it easy to do just that.  The beginning of your
  2978.              AUTOEXEC.BAT file could look like this:
  2979.  
  2980.                   iff %_transient == 1 then
  2981.                        call setpath
  2982.                        call aliases
  2983.                        quit
  2984.                   endiff
  2985.  
  2986.              This fragment calls other batch files to set up the path and
  2987.              aliases, but it does not load TSRs.
  2988.  
  2989.  
  2990.         Configuring 4DOS for Dual Boot and Boot Manager
  2991.  
  2992.              When you install OS/2, you are given a choice of making it the
  2993.              only operating system on your computer, or retaining a DOS
  2994.              boot capability as well.
  2995.  
  2996.              If you retain a DOS boot capability, OS/2 offers two different
  2997.              methods for switching between DOS and OS/2:  Dual Boot (OS/2
  2998.              versions 1.x and 2.x) and Boot Manager (OS/2 version 2.x
  2999.              only).  The way you configure 4DOS to work with OS/2 depends
  3000.              partly on whether you retain a DOS boot capability on your
  3001.              computer, and, if so, which method you choose.
  3002.  
  3003.              Dual Boot is invoked with the BOOT command (the program
  3004.              BOOT.COM distributed with OS/2).  If you use Dual Boot, you
  3005.              will have one copy of CONFIG.SYS and AUTOEXEC.BAT available on
  3006.              your boot drive when you boot in DOS mode and another version
  3007.  
  3008.         -------------------------------------------------------------------
  3009.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 49
  3010.  
  3011.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  3012.         -------------------------------------------------------------------
  3013.  
  3014.              available when you boot in OS/2 mode.  BOOT.COM works by
  3015.              swapping the DOS and OS/2 versions of CONFIG.SYS and
  3016.              AUTOEXEC.BAT, as well as other system data, then rebooting the
  3017.              computer.
  3018.  
  3019.              Boot Manager (included with OS/2 version 2.x only) uses a
  3020.              different approach.  It lets you install DOS on one hard drive
  3021.              partition and OS/2 on another partition.  When you boot the
  3022.              computer, Boot Manager displays a menu and lets you pick which
  3023.              operating system to boot.  Each partition will have its own
  3024.              versions of CONFIG.SYS and AUTOEXEC.BAT.
  3025.  
  3026.              The difference between these approaches is the location and
  3027.              availability of files.
  3028.  
  3029.              If you use Dual Boot, the system always boots from the same
  3030.              drive, whether you are booting DOS or OS/2.  The CONFIG.SYS
  3031.              and AUTOEXEC.BAT files are switched back and forth as you
  3032.              switch from one operating system to the other.  The set of
  3033.              files that is in use at any given time is stored in the root
  3034.              directory of the boot drive, and the set not in use is stored
  3035.              in the \OS2\SYSTEM directory.
  3036.  
  3037.              If you use the Boot Manager, the files for DOS reside on one
  3038.              drive (for example, C) and those for OS/2 are on another drive
  3039.              (for example, D).  The files are not moved when you switch
  3040.              operating systems.  In both cases, you can keep the startup
  3041.              files synchronized or independent to meet your own needs.
  3042.  
  3043.  
  3044.              CONFIG.SYS
  3045.  
  3046.              Setting up CONFIG.SYS is very simple, whether you are using
  3047.              Dual Boot or Boot Manager.  Modify both the DOS and OS/2
  3048.              CONFIG.SYS files for 4DOS as described on page 7.  The two
  3049.              files remain separate, and any changes to common items (for
  3050.              example the name of the directory where 4DOS is stored, used
  3051.              in the SHELL= command) must be made in both files.
  3052.  
  3053.  
  3054.              AUTOEXEC.BAT
  3055.  
  3056.              With AUTOEXEC.BAT, you have more flexibility.  Whether you use
  3057.              Dual Boot or Boot Manager, you will have two standard
  3058.              AUTOEXEC.BAT files:  one for starting 4DOS under a DOS boot
  3059.              and one for OS/2 DOS sessions.
  3060.  
  3061.              If you want different commands in AUTOEXEC.BAT for a DOS boot
  3062.              and OS/2 DOS sessions, you can keep the two files separate and
  3063.              distinct.  Just be sure to update both files whenever you make
  3064.  
  3065.         -------------------------------------------------------------------
  3066.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 50
  3067.  
  3068.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  3069.         -------------------------------------------------------------------
  3070.  
  3071.              changes to the commands they have in common.  You can also
  3072.              CALL other batch files from each copy of AUTOEXEC.BAT to
  3073.              handle common commands.
  3074.  
  3075.              You may find that many of the commands in the two AUTOEXEC.BAT
  3076.              files are the same and that it is more convenient to maintain
  3077.              a single file.  The following paragraphs explain how to do so.
  3078.  
  3079.              If you use the Boot Manager, you can put all of your
  3080.              instructions in one file and start it from the other.  For
  3081.              example, if DOS boots from drive C: and OS/2 boots from drive
  3082.              D:, your AUTOEXEC.BAT on drive D: could simply be:
  3083.  
  3084.                   cdd c:\
  3085.                   autoexec.bat
  3086.  
  3087.              On a Dual Boot system the startup files are moved each time
  3088.              you boot, so you cannot start one file from the other as you
  3089.              can with Boot Manager.  If are using Dual Boot and you want to
  3090.              use the same commands in AUTOEXEC for both DOS and OS/2, you
  3091.              must put all of your commands into a third file (for example,
  3092.              C:\SYSTART.BAT), and CALL that file from both the DOS and OS/2
  3093.              AUTOEXEC.BAT files.
  3094.  
  3095.              You can also use the AutoExecPath directive in 4DOS.INI to
  3096.              force 4DOS to look in a particular directory for AUTOEXEC.BAT
  3097.              regardless of whether it is started from an OS/2 DOS session
  3098.              or from a DOS boot, and regardless of the boot drive.
  3099.  
  3100.              If you keep commands for both boot modes in a single
  3101.              AUTOEXEC.BAT file, you can use the internal variable %_DOSVER
  3102.              to separate commands to be executed during a DOS boot from
  3103.              those for an OS/2 DOS session.  %_DOSVER will be 10 or above
  3104.              for OS/2 DOS sessions.  For example:
  3105.  
  3106.                   iff %_DOSVER ge 10.0
  3107.                      rem Commands for OS/2 DOS go here
  3108.                   else
  3109.                      rem Commands for native DOS go here
  3110.                   endiff
  3111.  
  3112.  
  3113.              4DOS.INI, 4START, and 4EXIT
  3114.  
  3115.              Handling 4DOS's startup and exit files is a little different.
  3116.              Unlike CONFIG.SYS and AUTOEXEC.BAT, the other startup files
  3117.              won't be swapped for you when you switch operating systems
  3118.              with Dual Boot, and they won't be automatically stored on
  3119.              separate partitions if you use the Boot Manager.  4DOS
  3120.              normally looks for these files in the directory where 4DOS.COM
  3121.  
  3122.         -------------------------------------------------------------------
  3123.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 51
  3124.  
  3125.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  3126.         -------------------------------------------------------------------
  3127.  
  3128.              is stored, so the same files will be used for both a DOS boot
  3129.              and OS/2 DOS sessions.
  3130.  
  3131.              To set up one 4DOS.INI file for DOS and another for OS/2 DOS
  3132.              sessions, use the @ininame parameter on the SHELL= line in
  3133.              CONFIG.SYS (see page 11).  For example, you might configure
  3134.              the SHELL= line for DOS to load the default file (4DOS.INI in
  3135.              your 4DOS directory), and use the @ininame parameter on the
  3136.              SHELL= line in the OS/2 CONFIG.SYS file to select a different
  3137.              .INI file for OS/2 DOS sessions.  To do so, use a line like
  3138.              this for DOS:
  3139.  
  3140.                   SHELL=C:\4DOS\4DOS.COM C:\4DOS /P
  3141.  
  3142.              And one like this for OS/2 (enter this on one line):
  3143.  
  3144.                   SHELL=C:\4DOS\4DOS.COM C:\4DOS @C:\4DOS\4DOSOS2.INI /P
  3145.  
  3146.              To select different 4START and 4EXIT files for DOS and for
  3147.              OS/2 DOS sessions, place one set of files in a different
  3148.              directory (not the directory where 4DOS.COM is stored).  Then
  3149.              either set up a different 4DOS.INI file for that boot mode as
  3150.              described above, using 4StartPath to point to the new
  3151.              directory, or use a //4StartPath directive on the SHELL= line
  3152.              in CONFIG.SYS for that boot mode.  For example, this line in
  3153.              an OS/2 CONFIG.SYS file sets 4DOS as the command processor,
  3154.              and tells 4DOS to look for 4START and 4EXIT in the
  3155.              C:\4DOS\OS2START directory (enter this on one line):
  3156.  
  3157.                   SHELL=C:\4DOS\4DOS.COM C:\4DOS
  3158.                   //4STARTPATH=C:\4DOS\OS2START /P
  3159.  
  3160.              You can also keep commands for both boot modes in a single
  3161.              4START or 4EXIT file, and use %_DOSVER to separate the
  3162.              commands to be executed during a DOS boot from those for an
  3163.              OS/2 DOS session.  For a basic example, see page 51.
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.  
  3173.  
  3174.  
  3175.  
  3176.  
  3177.  
  3178.  
  3179.         -------------------------------------------------------------------
  3180.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 52
  3181.  
  3182.                        Appendix A / Solving Software Compatibility Problems
  3183.         -------------------------------------------------------------------
  3184.  
  3185.  
  3186.         Appendix A / Solving Software Compatibility Problems
  3187.  
  3188.  
  3189.         Any DOS program running on your computer can potentially interact
  3190.         with any other program running at the same time.  Of course, most
  3191.         program interactions are ones you want:  your print spooler
  3192.         intercepts printer output and saves it to print later, or your disk
  3193.         cache intercepts disk requests and speeds them up by retrieving
  3194.         data from memory.
  3195.  
  3196.         If you've used the PC for any length of time, however, you'll know
  3197.         that you can also get interactions you don't want.  If you load
  3198.         just the wrong combination of TSRs and device drivers, your system
  3199.         may slow to a crawl.  Perhaps you can't load your favorite Personal
  3200.         Information Manager with Windows running.  And so on.
  3201.  
  3202.         As publishers of a product that replaces part of the operating
  3203.         system, we're very familiar with these issues - not because 4DOS is
  3204.         more likely to cause problems, but because it sometimes gets blamed
  3205.         first when a problem appears.  Our technical support department has
  3206.         developed a set of reliable techniques for finding out what's
  3207.         causing an apparent compatibility problem with 4DOS and other
  3208.         software.
  3209.  
  3210.         We are presenting these techniques here as a series of things to
  3211.         try when there seems to be a compatibility problem.  Some may not
  3212.         make sense for the particular problem you're investigating.  Others
  3213.         may not yield useful results.  But as a group, they'll help you
  3214.         resolve many of the common software interactions that do appear,
  3215.         whether with 4DOS or anything else.  Before you get started, be
  3216.         sure to check APPNOTES.DOC to see if we've already solved the
  3217.         problem you're facing.
  3218.  
  3219.         If you've tried the techniques in this section and haven't found
  3220.         the problem, contact our technical support department (see page 3).
  3221.         We have more tricks up our sleeve, and a very high success rate at
  3222.         resolving compatibility problems.
  3223.  
  3224.         Some of our suggestions help you figure out what's going on, but
  3225.         aren't intended to help you fix it.  For example, when we suggest
  3226.         that you remove all your TSRs to look for the problem, we aren't
  3227.         suggesting that as a permanent solution, but only as a diagnostic
  3228.         test.
  3229.  
  3230.         The first thing to consider is whether the particular combination
  3231.         of software that's not working used to work together.  If so, think
  3232.         carefully about what you have changed and see if reversing the
  3233.         change solves the problem.  If it does, then you can narrow your
  3234.  
  3235.  
  3236.         -------------------------------------------------------------------
  3237.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 53
  3238.  
  3239.                        Appendix A / Solving Software Compatibility Problems
  3240.         -------------------------------------------------------------------
  3241.  
  3242.         search, using the following techniques to find out what it is about
  3243.         that specific change that is causing the problem.
  3244.  
  3245.         Second, make sure that your problem can be reproduced relatively
  3246.         easily, and make sure you know exactly what sequence of commands or
  3247.         other steps reproduces it.  Most interactions are very easy to
  3248.         reproduce, but if you think there's an interaction and it occurs
  3249.         once every 10 days, it's going to be difficult to know when you
  3250.         have fixed it.  Also, the process of carefully documenting how to
  3251.         reproduce a problem often helps you realize what the problem is
  3252.         without further effort.
  3253.  
  3254.         If you have a problem with a specific application hanging or
  3255.         working improperly, and the above techniques don't help, then try
  3256.         reducing your system configuration to the simplest possible level.
  3257.         This is the single most useful tool we know for finding
  3258.         compatibility problems.  To do so, use all of the approaches listed
  3259.         below, and any other similar things you may be able to think of
  3260.         about your particular system after reading our suggestions.
  3261.  
  3262.         When you're modifying 4DOS.INI in an attempt to resolve problems,
  3263.         you may find the INIQuery directive useful.  If you set INIQuery to
  3264.         Yes for a section of 4DOS.INI, then 4DOS will prompt you for each
  3265.         line in that section.  This allows you to test the effects of
  3266.         changing directives in the .INI file without actually modifying the
  3267.         file for each test.
  3268.  
  3269.  
  3270.         Path Length
  3271.  
  3272.              The first thing to do is to check the length of your PATH
  3273.              variable.  4DOS lets you make it longer than the traditional
  3274.              limit of 123 characters.  Some programs can't handle long
  3275.              PATHs and may behave strangely.  If your PATH is over the
  3276.              traditional limit, reduce its size using the PATH or ESET
  3277.              command and see if the application starts working.  If so, use
  3278.              a batch file or alias to set up an alternate path for running
  3279.              that one program, for example:
  3280.  
  3281.                   setlocal
  3282.                   path d:\myprog
  3283.                   d:\myprog\myprog.exe
  3284.                   endlocal
  3285.  
  3286.              The SETLOCAL / ENDLOCAL pair saves and restores the
  3287.              environment; when you're done, the old PATH will be restored
  3288.              automatically.
  3289.  
  3290.  
  3291.  
  3292.  
  3293.         -------------------------------------------------------------------
  3294.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 54
  3295.  
  3296.                        Appendix A / Solving Software Compatibility Problems
  3297.         -------------------------------------------------------------------
  3298.  
  3299.         Environment Size
  3300.  
  3301.              Next, check how much environment space is in use in your
  3302.              system.  The 4DOS MEMORY command reports the total environment
  3303.              space and the amount free; a simple subtraction tells you how
  3304.              much is in use.  Some programs simply don't work right if
  3305.              there's a lot of information in the environment (these
  3306.              programs don't usually care how big the total environment
  3307.              space is, only how much of it is actually in use).  In most
  3308.              cases, these problems show up when the amount of space in use
  3309.              gets up to around 1K (1024) bytes or so, but they can occur at
  3310.              any point. To test for this, use the following simple batch
  3311.              file:
  3312.  
  3313.                   setlocal
  3314.                   unset var1 var2 var3 ...
  3315.                   [command to run the program in question]
  3316.                   endlocal
  3317.  
  3318.              where VAR1, VAR2, etc. are variables you can remove from the
  3319.              environment to decrease the space in use before running the
  3320.              program.  If reducing the environment space in use makes
  3321.              things work, contact the program's manufacturer and report the
  3322.              problem.  You have found a legitimate bug.  DOS allows an
  3323.              environment of up to 32K bytes, and your program should be
  3324.              able to work with an environment that large.  Until the
  3325.              manufacturer fixes the bug, use the batch file above as a
  3326.              workaround.
  3327.  
  3328.  
  3329.         Testing for Interactions
  3330.  
  3331.              Before testing for software interactions, try booting your
  3332.              system with COMMAND.COM, without changing anything else about
  3333.              your configuration (though you may have to modify AUTOEXEC.BAT
  3334.              if it contains 4DOS-specific commands).  If the problem
  3335.              remains, then it's not related to an interaction with 4DOS.
  3336.              Contact the manufacturer of the software that isn't working
  3337.              properly to determine the cause of the problem.
  3338.  
  3339.              To look for a multi-program interaction, you'll need to remove
  3340.              all the device drivers and TSRs you possibly can and still
  3341.              have enough software present to demonstrate the problem.  For
  3342.              example, you can't look for a network problem if you don't
  3343.              load the network, but you probably can check it without your
  3344.              disk cache running.  If you're running DOS, be sure you have a
  3345.              bootable floppy disk handy (see page 4) before modifying your
  3346.              CONFIG.SYS and AUTOEXEC.BAT files to remove drivers and TSRs.
  3347.  
  3348.  
  3349.  
  3350.         -------------------------------------------------------------------
  3351.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 55
  3352.  
  3353.                        Appendix A / Solving Software Compatibility Problems
  3354.         -------------------------------------------------------------------
  3355.  
  3356.              If you run a partitioning disk driver, you probably can't
  3357.              remove it for diagnostic purposes without temporarily losing
  3358.              access to some or all of your hard disk.  The same may be true
  3359.              of disk compression programs like Stacker, depending on the
  3360.              mode in which they are installed.  Most other device drivers
  3361.              and TSRs can be removed without causing trouble.  Check your
  3362.              system and software manuals if you are unsure of which
  3363.              programs can safely be removed.
  3364.  
  3365.              Once you know what you can take out, don't skimp or guess
  3366.              where the interaction might be.  Take out everything you
  3367.              possibly can from CONFIG.SYS, 4START, and AUTOEXEC.BAT that
  3368.              loads or accesses another program .  In CONFIG.SYS, remove all
  3369.              possible DEVICE and INSTALL statements.  In AUTOEXEC.BAT,
  3370.              remove all the lines you can that load memory-resident
  3371.              programs (and remember that some DOS utilities, like MODE, can
  3372.              be memory-resident).
  3373.  
  3374.              Of course, you should save copies of your configuration files
  3375.              before you delete anything.  Better yet, use the REM command
  3376.              to remove lines temporarily without deleting them.  REM can be
  3377.              used on any line in AUTOEXEC.BAT, in 4START, and in CONFIG.SYS
  3378.              if you are running DOS 4.0 or above.  (In earlier DOS
  3379.              versions, REM will work in CONFIG.SYS but will also generate a
  3380.              harmless "unrecognized command" message during bootup.)  If
  3381.              you want to remove everything in AUTOEXEC.BAT you can rename
  3382.              it to another name (say AUOTEXEC.SAV), and rename it back when
  3383.              you are done testing.
  3384.  
  3385.              Clean out your configuration files all at once, not one line
  3386.              at a time.  If that solves the problem, you're on the right
  3387.              track, and you can put the lines back one at a time until you
  3388.              find the culprit.  If it doesn't solve the problem, you won't
  3389.              waste time removing lines one by one.
  3390.  
  3391.              If the problem isn't there under COMMAND.COM, try fiddling
  3392.              with the program's configuration. If you were loading it high,
  3393.              try loading it low.  If you can change the way it uses memory,
  3394.              try doing so.  If it's a driver that's used by other programs
  3395.              (like your mouse driver) and is quite old, consider obtaining
  3396.              an update from the manufacturer.  All of these techniques will
  3397.              help you narrow down what it is about the program that's
  3398.              causing a problem.  Once you have done that, you may have a
  3399.              simple workaround.  If not, contact our technical support
  3400.              department and we'll try to verify the problem, then resolve
  3401.              it with the manufacturer of the other software.
  3402.  
  3403.              Some problems can be resolved by modifying the order in which
  3404.              you load drivers and TSRs.  If you've found a problem with a
  3405.  
  3406.  
  3407.         -------------------------------------------------------------------
  3408.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 56
  3409.  
  3410.                        Appendix A / Solving Software Compatibility Problems
  3411.         -------------------------------------------------------------------
  3412.  
  3413.              particular driver or TSR, if possible try loading it earlier
  3414.              or later than you were and see if the problem goes away.
  3415.  
  3416.              If you're running OS/2, the process of removing device drivers
  3417.              and TSRs is usually simpler than under DOS.  You probably
  3418.              won't need to modify CONFIG.SYS, but you may need to adjust
  3419.              the DOS Settings for the session in which 4DOS is running (see
  3420.              page ).  Try changing the amounts of XMS, EMS, and DPMI memory
  3421.              available to the DOS session, removing drivers if any are
  3422.              listed under DOS_DEVICE in your DOS Settings, and removing
  3423.              memory-resident programs loaded in AUTOEXEC.BAT as described
  3424.              above.
  3425.  
  3426.  
  3427.         Memory Allocation Conflicts
  3428.  
  3429.              A memory allocation conflict is very simple.  It occurs when
  3430.              two (or more) programs try to use the same memory, or when a
  3431.              program behaves differently depending on where it is loaded in
  3432.              memory.  Inevitably, at least one of the programs will operate
  3433.              incorrectly, report an error, or hang.  These conflicts can be
  3434.              very hard to diagnose, because it's difficult to determine
  3435.              which programs are actually causing the conflict, and the
  3436.              symptoms may appear to be totally unrelated to the program
  3437.              responsible for the problem.
  3438.  
  3439.              4DOS uses memory in a more complex way than COMMAND.COM.  It
  3440.              can use base, XMS, or EMS memory, and store portions of itself
  3441.              and its data in UMBs (see page 24 for additional details on
  3442.              4DOS memory usage).  COMMAND.COM does not offer any of these
  3443.              capabilities.  This added complexity makes it more likely that
  3444.              you'll encounter memory allocation conflicts with 4DOS.  This
  3445.              isn't because 4DOS is less reliable than other programs, it's
  3446.              because the memory allocation conflict was there waiting to
  3447.              happen, and 4DOS triggered it through its access to additional
  3448.              memory.
  3449.  
  3450.              It's easy to check whether 4DOS's use of memory is a problem.
  3451.              If you configure 4DOS so that it swaps to disk, and disable
  3452.              all use of UMBs, then 4DOS uses only base memory, and (in
  3453.              terms of memory allocation) operates very much like
  3454.              COMMAND.COM.  You can make this change in two simple steps.
  3455.              First, add one line to 4DOS.INI:
  3456.  
  3457.                   Swapping = c:\
  3458.  
  3459.              (change this if you prefer to swap to a different drive, but
  3460.              do not use a RAM disk when you are testing for compatibility
  3461.              problems - the RAM disk itself could be part of the problem).
  3462.              Second, remove any lines in 4DOS.INI which allocate UMBs
  3463.  
  3464.         -------------------------------------------------------------------
  3465.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 57
  3466.  
  3467.                        Appendix A / Solving Software Compatibility Problems
  3468.         -------------------------------------------------------------------
  3469.  
  3470.              (UMBLoad, UMBEnvironment, UMBAlias, and UMBHistory), or place
  3471.              a semicolon at the start of such lines to temporarily turn
  3472.              them into comments.
  3473.  
  3474.              If these steps solve the problem, you've found a memory
  3475.              allocation conflict.  The next thing to do is remove all the
  3476.              drivers and TSRs you can to see if you can determine where the
  3477.              conflict is.  For specific techniques, see page 55.  If you
  3478.              can't come up with an acceptable solution using these
  3479.              techniques, contact JP Software for technical assistance.
  3480.  
  3481.  
  3482.              Memory Allocation and Microsoft Windows
  3483.  
  3484.              If you use Microsoft Windows, there are some specific memory
  3485.              allocation issues you need to consider.  When you run Windows
  3486.              in 386 Enhanced mode, the Windows memory manager "takes over"
  3487.              from the underlying DOS-based memory manager.  If the two
  3488.              programs don't see memory in quite the same way, the conflict
  3489.              can produce some very strange behavior.  For example, the same
  3490.              memory can be allocated twice, or Windows can put portions of
  3491.              itself in areas that were being used by 4DOS or your device
  3492.              drivers and TSRs.  These problems typically apply to upper
  3493.              memory, and not to EMS or XMS memory.  Any of them can cause
  3494.              substantial difficulties in Windows DOS sessions.
  3495.  
  3496.              To avoid such problems you need to systematically verify that
  3497.              Windows and your memory manager are using the same information
  3498.              about upper memory.  You can do so with this approach:
  3499.  
  3500.                   * First, gather a list of all the areas of upper memory
  3501.                     used by your hardware.  This may require consulting
  3502.                     your hardware manuals.  Look for an explanation of the
  3503.                     range of addresses used by each board, as a pair of 4-
  3504.                     digit hexadecimal numbers, for example D400-D7FF.
  3505.                     (Sometimes the addresses have a trailing zero, for
  3506.                     example D4000-D7FF0.  In this case use only the first
  3507.                     4 digits.)  Some boards use no upper memory space at
  3508.                     all.  Boards which may occupy space in upper memory
  3509.                     include network interface cards, SCSI boards, sound
  3510.                     cards, and scanner boards.  Some hard disk controllers
  3511.                     and video boards also use upper memory space,
  3512.                     including "Super VGA" and other high-resolution video
  3513.                     boards.  Video boards may use different areas of upper
  3514.                     memory depending on your display mode.  However, you
  3515.                     don't usually need to consider the standard areas used
  3516.                     by basic VGA boards.
  3517.  
  3518.                   * Next, make sure you have excluded all the areas of
  3519.                     upper memory from management by your memory manager.
  3520.  
  3521.         -------------------------------------------------------------------
  3522.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 58
  3523.  
  3524.                        Appendix A / Solving Software Compatibility Problems
  3525.         -------------------------------------------------------------------
  3526.  
  3527.                     The basic approach is to include a switch when you
  3528.                     start up the memory manager, for example /X=D400-D7FF
  3529.                     to exclude the range D400-D7FF.  See your memory
  3530.                     manager documentation for the exact method.
  3531.  
  3532.                   * Finally, locate the SYSTEM.INI file in your Windows
  3533.                     directory.  Find the section of this file beginning
  3534.                     [386Enh] and add an EMMExclude line to it for each
  3535.                     range to be excluded, for example:
  3536.  
  3537.                        EMMExclude=D400-D7FF
  3538.  
  3539.                     The list in SYSTEM.INI should exactly match the
  3540.                     exclude list given to your memory manager.
  3541.  
  3542.              If this technique solves the problem, you're finished.  If
  3543.              not, also check that any network you have installed is
  3544.              properly configured for Windows.  Errors in network
  3545.              configuration under Windows may generate memory allocation
  3546.              conflicts of their own, and can cause unusual behavior in
  3547.              Windows DOS sessions even though the DOS sessions are not
  3548.              specifically accessing the network.
  3549.  
  3550.  
  3551.         Advanced Configuration Options
  3552.  
  3553.              If none of the other techniques in this Appendix proves
  3554.              useful, some of the advanced directives in 4DOS.INI may help
  3555.              solve very rare configuration problems.  However, unless you
  3556.              are an experienced DOS user and understand the side effects of
  3557.              each directive, they should be used only as diagnostic tools
  3558.              and not as a workaround or fix.  Any of the following can be
  3559.              tried for the conditions indicated:
  3560.  
  3561.                   FineSwap = Yes:  If you are using disk swapping and your
  3562.                   system hangs when exiting an application.
  3563.  
  3564.                   Inherit = No:  If you have unexplained problems in
  3565.                   starting secondary shells.
  3566.  
  3567.                   LineInput = Yes (or SETDOS /L1):  If you have memory-
  3568.                   resident programs which do not recognize that you are at
  3569.                   the prompt.
  3570.  
  3571.                   Reduce = No:  If you have unexplained problems in
  3572.                   starting secondary shells.
  3573.  
  3574.                   ReserveTPA = No:  For unusual memory allocation problems.
  3575.  
  3576.  
  3577.  
  3578.         -------------------------------------------------------------------
  3579.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 59
  3580.  
  3581.                        Appendix A / Solving Software Compatibility Problems
  3582.         -------------------------------------------------------------------
  3583.  
  3584.                   SwapReopen = Yes:  If an application or network generates
  3585.                   reproducible errors related to the 4DOS swap file (for
  3586.                   example "Swap file seek failed" or similar errors)
  3587.  
  3588.  
  3589.  
  3590.  
  3591.  
  3592.  
  3593.  
  3594.  
  3595.  
  3596.  
  3597.  
  3598.  
  3599.  
  3600.  
  3601.  
  3602.  
  3603.  
  3604.  
  3605.  
  3606.  
  3607.  
  3608.  
  3609.  
  3610.  
  3611.  
  3612.  
  3613.  
  3614.  
  3615.  
  3616.  
  3617.  
  3618.  
  3619.  
  3620.  
  3621.  
  3622.  
  3623.  
  3624.  
  3625.  
  3626.  
  3627.  
  3628.  
  3629.  
  3630.  
  3631.  
  3632.  
  3633.  
  3634.  
  3635.         -------------------------------------------------------------------
  3636.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 60
  3637.  
  3638.                                          APPENDIX B / TECHNICAL INFORMATION
  3639.         -------------------------------------------------------------------
  3640.  
  3641.  
  3642.         APPENDIX B / TECHNICAL INFORMATION
  3643.  
  3644.  
  3645.         This appendix provides technical information for programmers who
  3646.         wish to build interfaces to 4DOS.  It covers detecting 4DOS,
  3647.         placing keystrokes in the Keystack, writing installable commands,
  3648.         using the DESCRIPT.ION file, and using the interrupt 2E "back door"
  3649.         entry into 4DOS to execute commands.
  3650.  
  3651.  
  3652.         Detecting 4DOS
  3653.  
  3654.  
  3655.              Detecting 4DOS From a Batch File
  3656.  
  3657.              From a batch file, you can determine if 4DOS is loaded by
  3658.              testing for the variable function @EVAL, with a test like
  3659.              this:
  3660.  
  3661.                   if "%@eval[2+2]" == "4" echo 4DOS is loaded!
  3662.  
  3663.              This test can not succeed in COMMAND.COM and is therefore a
  3664.              reliable way to detect 4DOS.  Other variable functions could
  3665.              be used for the same purpose.
  3666.  
  3667.  
  3668.              Detecting 4DOS From a Program
  3669.  
  3670.              Any program can test for the presence of 4DOS by making a
  3671.              simple INT 2Fh call.  Be sure to check the INT 2Fh vector
  3672.              first as it may be 0 under some versions of DOS if no program
  3673.              has hooked the interrupt.  To detect 4DOS, call INT 2Fh with:
  3674.  
  3675.                   AX     D44Dh
  3676.                   BX     0
  3677.  
  3678.              If 4DOS is not loaded, AX will be returned unchanged.  If 4DOS
  3679.              is loaded, it will return the following (no other registers
  3680.              are modified):
  3681.  
  3682.                   AX     44DDh
  3683.                   BX     Version number (BL = major version, BH = minor
  3684.                          version)
  3685.                   CX     4DOS PSP segment address
  3686.                   DL     4DOS shell number
  3687.  
  3688.              The shell number is incremented each time a new copy of 4DOS
  3689.              is loaded, either in a different multitasker window (for
  3690.              example, under Windows), or via nested shells.  The primary
  3691.  
  3692.         -------------------------------------------------------------------
  3693.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 61
  3694.  
  3695.                                          APPENDIX B / TECHNICAL INFORMATION
  3696.         -------------------------------------------------------------------
  3697.  
  3698.              shell is shell number 0.  In OS/2 DOS sessions, each session's
  3699.              primary shell is shell 0.
  3700.  
  3701.              The response to INT 2F function D44Dh will come from the most
  3702.              recently loaded 4DOS shell.  For example, if your program is
  3703.              run from a secondary shell the response will come from that
  3704.              secondary shell, and will reflect its shell number and PSP
  3705.              address.
  3706.  
  3707.              This function tells you if 4DOS is loaded in memory, but not
  3708.              whether it is the parent process of your program.  You can
  3709.              determine if 4DOS is the parent process by comparing the PSP
  3710.              value returned in CX to the PSP chain pointer at offset 16h in
  3711.              your program's PSP.
  3712.  
  3713.  
  3714.              Detecting the 4DOS Prompt
  3715.  
  3716.              4DOS generates INT 2Fh calls before and after the prompt is
  3717.              displayed to allow TSRs to detect that 4DOS is at the prompt.
  3718.              The calls are:
  3719.  
  3720.                   AX     D44Eh
  3721.                   BX     0 if 4DOS is about to display the prompt; 1 if
  3722.                          4DOS has displayed the prompt and is about to
  3723.                          accept keyboard input; or 2 if keyboard input is
  3724.                          complete and 4DOS is about to begin processing
  3725.                          the line.
  3726.  
  3727.              Any routine intercepting these calls should preserve the SI,
  3728.              DI, BP, SP, DS, ES, and SS registers.
  3729.  
  3730.  
  3731.         Placing Keystrokes Into the Keystack
  3732.  
  3733.              You can put keystrokes into the 4DOS Keystack with an INT 2Fh
  3734.              call.  First, you must make a call to check whether KSTACK.COM
  3735.              is loaded:
  3736.  
  3737.                   AX     D44Fh
  3738.                   BX     0
  3739.  
  3740.              If KSTACK.COM is not loaded, this call will return AX
  3741.              unchanged.  If it is loaded, AX will be returned as 44DDh;
  3742.              other registers will be unchanged.  Once you have determined
  3743.              that KSTACK.COM is loaded, you can send keystrokes with this
  3744.              call:
  3745.  
  3746.                   AX     D44Fh
  3747.                   BX     1
  3748.  
  3749.         -------------------------------------------------------------------
  3750.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 62
  3751.  
  3752.                                          APPENDIX B / TECHNICAL INFORMATION
  3753.         -------------------------------------------------------------------
  3754.  
  3755.                   CX     number of words being passed (0 - 255)
  3756.                   DS:DX  address of the keystroke array
  3757.  
  3758.              On return, if the call succeeded then AX will be 0; if it
  3759.              failed, AX will be non-zero.  BX, CX, and DX are destroyed;
  3760.              other registers are preserved.  If the call succeeds,
  3761.              subsequent calls to INT 16h functions 0, 1, 10h, or 11h will
  3762.              receive the stacked keystrokes.
  3763.  
  3764.              The keystroke array passed to KSTACK must be an array of words
  3765.              containing the values to return from INT 16h.  The high byte
  3766.              of each word is a scan code and the low byte is an ASCII code.
  3767.              Many programs accept keystrokes properly with only the ASCII
  3768.              code, but some require the scan code as well.  See Appendix B
  3769.              of your Reference Manual for a list of ASCII and scan codes
  3770.              for most keyboards.  To insert a delay in the keystroke
  3771.              sequence, include a word set to FFFFh followed by a word
  3772.              containing the desired delay in clock ticks.
  3773.  
  3774.  
  3775.         Writing Installable Commands
  3776.  
  3777.              An "installable command" is created with a memory-resident
  3778.              program (TSR) which can receive signals from 4DOS and process
  3779.              commands.  4DOS makes every command available to such TSRs
  3780.              before it is executed; if any TSR chooses to execute the
  3781.              command, 4DOS will do no further processing.  Otherwise, 4DOS
  3782.              processes the command normally.
  3783.  
  3784.              The 4DOS "Installable Command" interface is compatible with an
  3785.              undocumented interface present in COMMAND.COM for MS-DOS and
  3786.              PC-DOS 3.3 and above.  This interface is documented more
  3787.              thoroughly in the excellent reference text Undocumented DOS by
  3788.              Schulman et. al., published by Addison Wesley.
  3789.  
  3790.              4DOS looks for an installable command after alias and variable
  3791.              expansion and redirection, and after checking to see if the
  3792.              command is a drive change, but before checking for an internal
  3793.              or external command.
  3794.  
  3795.              4DOS first makes an INT 2Fh call to determine whether any TSR
  3796.              loaded will respond to the command, with:
  3797.  
  3798.                   AX     AE00h
  3799.                   BX     offset of command line buffer:
  3800.                             first byte = maximum length of command line
  3801.                             second byte = actual length of command line,
  3802.                               not including trailing CR
  3803.                             remainder = command line, with a trailing CR
  3804.                   CH     FFh
  3805.  
  3806.         -------------------------------------------------------------------
  3807.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 63
  3808.  
  3809.                                          APPENDIX B / TECHNICAL INFORMATION
  3810.         -------------------------------------------------------------------
  3811.  
  3812.                   CL     length of command line, not including the command
  3813.                          name
  3814.                   DX     FFFFh
  3815.                   SI     offset of command name buffer:
  3816.                             first byte = length of command name
  3817.                             remainder = command name, shifted to upper case
  3818.                               and padded with blanks to 11 characters
  3819.                   DS     segment for command line and command name buffers
  3820.  
  3821.              If the TSR does not recognize the command as its own, it must
  3822.              pass the INT 2Fh along with registers unchanged.  If it does
  3823.              recognize the command, it must return 0FFh in AL.  The command
  3824.              should not be executed at this point.  4DOS will then make
  3825.              another call (buffer formats are the same as above):
  3826.  
  3827.                   AX     AE01h
  3828.                   BX     offset of command line buffer
  3829.                   CH     0
  3830.                   CL     length of command name
  3831.                   DX     FFFFh
  3832.                   SI     offset of command name buffer
  3833.                   DS     segment for command line and command name buffers
  3834.  
  3835.              If the TSR executes the command line, it must set the command
  3836.              name length at DS:[SI] to 0.  If the command name length is
  3837.              not set to 0, 4DOS will attempt to execute the command as an
  3838.              internal or external command.  This allows the TSR to return a
  3839.              modified command line to 4DOS by modifying the command line
  3840.              buffer at DS:BX, and leaving the command name length byte at
  3841.              DS:[SI] set to a non-zero value.  If the command is executed,
  3842.              the TSR should return the result of the command (zero for
  3843.              normal return or non-zero for an error) in AL.
  3844.  
  3845.  
  3846.         Using DESCRIPT.ION
  3847.  
  3848.              4DOS uses the file DESCRIPT.ION to store file descriptions.
  3849.              This file is created as a hidden file in each subdirectory
  3850.              which has descriptions, and deleted when all descriptions are
  3851.              removed or when all files with descriptions are deleted.  If
  3852.              you remove the hidden attribute from the file, 4DOS will not
  3853.              hide it again.
  3854.  
  3855.              Your programs can access DESCRIPT.ION to create, retrieve, or
  3856.              modify file descriptions, and to store other information.
  3857.              DESCRIPT.ION has one line per file, and is unsorted.  Each
  3858.              line is in the following format:
  3859.  
  3860.                   filename.ext Description[u<ID>Other program info]...<CR>
  3861.  
  3862.  
  3863.         -------------------------------------------------------------------
  3864.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 64
  3865.  
  3866.                                          APPENDIX B / TECHNICAL INFORMATION
  3867.         -------------------------------------------------------------------
  3868.  
  3869.              There is normally one space between the description and
  3870.              filename but additional spaces may be used in future versions
  3871.              of 4DOS.  The characters after the description allow extension
  3872.              of the description format for use by other programs.  They are
  3873.              as follows:
  3874.  
  3875.                   u is an ASCII Ctrl-D (04), and marks the end of the
  3876.                   description text and the beginning of information for a
  3877.                   program other than 4DOS.  This symbol can appear multiple
  3878.                   times on each line; each occurrence marks the beginning
  3879.                   of information for another program.
  3880.  
  3881.                   <ID> is an identification byte for the program which is
  3882.                   using this area of the particular line.  If you are
  3883.                   writing a program which will store information in
  3884.                   DESCRIPT.ION, test it using an ID byte of your own
  3885.                   choosing.  When you are ready to release the program,
  3886.                   contact JP Software and we will provide you with an ID
  3887.                   byte value that is not in use by others to the best of
  3888.                   our knowledge.
  3889.  
  3890.                   Other program info is any text the program wishes to
  3891.                   store in its area of the line.  The text should relate
  3892.                   specifically to the file named on the line.  It may not
  3893.                   contain the u character, carriage returns, line feeds, or
  3894.                   nulls (ASCII 0s).
  3895.  
  3896.              4DOS will copy, delete, or move all the information on a line
  3897.              in DESCRIPT.ION, including  information owned by other
  3898.              programs, when performing the same action on the corresponding
  3899.              file.  4DOS will also change the name if a file is renamed.
  3900.              To support DESCRIPT.ION properly, your program must do the
  3901.              same if it copies, deletes, moves, or renames files.  Take
  3902.              care not to remove information which does not belong to your
  3903.              program, or delete lines which contain information for other
  3904.              programs.  Your program should be able to handle a line
  3905.              terminated by a CR or LF alone, a CR/LF pair, an EOF (ASCII
  3906.              26), or the physical end of the file.  The lines it creates
  3907.              should be terminated with CR / LF.  The line length limit is
  3908.              4096 bytes; exceeding this limit will cause unpredictable
  3909.              results.
  3910.  
  3911.  
  3912.         Interrupt 2E
  3913.  
  3914.              4DOS provides full, documented support for the undocumented
  3915.              COMMAND.COM "back door" entry, INT 2E (hex).  INT 2E allows
  3916.              applications to call the primary copy of the command processor
  3917.              to execute commands, without loading a secondary shell.
  3918.  
  3919.  
  3920.         -------------------------------------------------------------------
  3921.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 65
  3922.  
  3923.                                          APPENDIX B / TECHNICAL INFORMATION
  3924.         -------------------------------------------------------------------
  3925.  
  3926.              INT 2E support is enabled by default.  It can be disabled with
  3927.              the FullINT2E = No directive in 4DOS.INI, in which case 4DOS
  3928.              "hooks" INT 2E, but any calls to it are ignored.  INT 2E
  3929.              support adds about 100 bytes to the resident size of 4DOS, and
  3930.              applies only to the primary shell (it is ignored in secondary
  3931.              shells).
  3932.  
  3933.              To use INT 2E, set DS:SI to the address of a buffer containing
  3934.              the command, then issue an INT 2E.  The buffer format is:
  3935.  
  3936.                   First byte  Length of the command, not including this
  3937.                               byte or the last byte
  3938.                   Text bytes  The command text
  3939.                   Last byte   CR (ASCII 13)
  3940.  
  3941.              You must release enough memory for 4DOS to reload its
  3942.              transient portion, and provide about 80 bytes of available
  3943.              stack space for the INT 2E handler to use.  INT 2E can not be
  3944.              called from a TSR while 4DOS is running (for example, a TSR
  3945.              popped up at the 4DOS prompt or from within LIST or SELECT),
  3946.              but can be called from within any application or from within a
  3947.              TSR while an application (including the 4DOS HELP system) is
  3948.              running.
  3949.  
  3950.              INT 2E can invoke any 4DOS command including an alias, an
  3951.              internal command, an external command, or a batch file.  All
  3952.              changes to 4DOS data (such as aliases, environment variables,
  3953.              and SETDOS settings) which are made by a command executed via
  3954.              INT 2E calls will affect the primary shell, and the
  3955.              environment passed to a program called via INT 2E will be a
  3956.              copy of the primary shell's environment.
  3957.  
  3958.              INT 2E uses the same internal stack as the primary shell.  If
  3959.              a complex command is used in the primary shell to start a
  3960.              program which eventually issues an INT 2E, the additional
  3961.              stack space required by commands executed through INT 2E may
  3962.              (in rare circumstances) cause a stack overflow.  If this
  3963.              occurs, use the StackSize directive in 4DOS.INI to increase
  3964.              4DOS's internal stack space.
  3965.  
  3966.              INT 2E also uses the same batch file "stack" as the primary
  3967.              shell.  This means that if INT 2E is used to execute a batch
  3968.              file, this batch file is considered "nested" within any batch
  3969.              file(s) used in the primary shell to start the program which
  3970.              issued the INT 2E.  This may cause batch nesting errors from
  3971.              within the INT 2E call which would not occur if the same
  3972.              command were executed at the prompt.
  3973.  
  3974.              On return from INT 2E, all registers will be destroyed except
  3975.              SS and SP.  AX will be set as follows:
  3976.  
  3977.         -------------------------------------------------------------------
  3978.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 66
  3979.  
  3980.                                          APPENDIX B / TECHNICAL INFORMATION
  3981.         -------------------------------------------------------------------
  3982.  
  3983.                   FFFFh  An error occurred before processing the command:
  3984.                          not enough memory was available, INT 2E was
  3985.                          called from a TSR, or another error made it
  3986.                          impossible to handle the interrupt.
  3987.  
  3988.                   0      The command was processed without error.
  3989.  
  3990.                   > 0    There was an error in processing the command.  AX
  3991.                          is the error number, equivalent to the %_? value
  3992.                          from an internal command or the %? value from an
  3993.                          external command.  If a batch file is run, the
  3994.                          value will be the error level returned by the
  3995.                          batch file (via QUIT n or CANCEL n) or the last
  3996.                          command within it.  If an alias is run the value
  3997.                          will be the exit code returned by the last
  3998.                          command in the alias.
  3999.  
  4000.  
  4001.  
  4002.  
  4003.  
  4004.  
  4005.  
  4006.  
  4007.  
  4008.  
  4009.  
  4010.  
  4011.  
  4012.  
  4013.  
  4014.  
  4015.  
  4016.  
  4017.  
  4018.  
  4019.  
  4020.  
  4021.  
  4022.  
  4023.  
  4024.  
  4025.  
  4026.  
  4027.  
  4028.  
  4029.  
  4030.  
  4031.  
  4032.  
  4033.  
  4034.         -------------------------------------------------------------------
  4035.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 67
  4036.  
  4037.                                                                       Index
  4038.         -------------------------------------------------------------------
  4039.  
  4040.         Index                               4START (continued)
  4041.                                                 and startup command, 13
  4042.                                                 location of, 48
  4043.         Conventions:  Most fully                single-step option, 13
  4044.         capitalized terms (e.g., ECHO,
  4045.         SELECT) are command names           A
  4046.         unless otherwise noted.      
  4047.                                             Alias list, local and global,
  4048.                                               12, 26, 27
  4049.                                             ANSI driver, 29
  4050.         Special Characters                      in CONFIG.SYS, 30
  4051.                                             APPEND command, 32
  4052.         ## advanced topic mark, 3           APPNOTES.DOC, 2
  4053.         ! warning mark, 3                   AUTOEXEC.BAT, 10, 16
  4054.                                                 and 4START, 16
  4055.         3                                       and installation, 4, 6, 8
  4056.                                                 and OS/2, 42, 48, 50
  4057.         386MAX, 28                              and OS/2 Dual Boot and Boot
  4058.                                                   Manager, 50
  4059.         4                                       and startup command, 13
  4060.                                                 disabling, 12
  4061.         4DOS for Windows NT, 1                  running, 13
  4062.         4DOS.INI, 10                            single-step option, 13
  4063.             and OS/2 DOS sessions, 46,          starting KSTACK.COM, 8, 16
  4064.               47                            
  4065.             and OS/2 Dual Boot and Boot     B
  4066.               Manager, 51                   
  4067.             directives, on startup          Back & Forth, 15
  4068.               command line, 11, 15          Base memory, see Memory
  4069.             location of, 11, 15, 47         Batch files, startup, 13, 16,
  4070.             prompts during execution,         36
  4071.               54                                and Microsoft Windows, 38
  4072.             reference information, 2        BIOS, 29
  4073.             secondary section, and          Boot Manager, see OS/2
  4074.               multitasking, 35              BOOT.SYS, 14
  4075.         4DOS.PIF, 38                        Bootable disk, creating, 4
  4076.         4EXIT, 10, 16                       
  4077.             and 4OS2, 48                    C
  4078.             and OS/2, 48, 51                
  4079.             location of, 48                 CD-ROM drives, 31
  4080.         4HELP, see Help system              Colors, in help system, 21, 30
  4081.         4OS2, 1                             COMMAND.COM
  4082.             and 4DOS installation, 5            in DOS version 2.x, 14
  4083.         4START, 10, 16                          in Microsoft Windows, 38
  4084.             and 4OS2, 48                        in multitasker DOS windows,
  4085.             and multitasking, 36                  35
  4086.             and OS/2, 48, 51
  4087.         
  4088.         
  4089.         
  4090.  
  4091.         -------------------------------------------------------------------
  4092.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 68
  4093.  
  4094.                                                                       Index
  4095.         -------------------------------------------------------------------
  4096.  
  4097.         Commands                            CONFIG.SYS (continued)
  4098.             4DOS startup, 13, 16                SHELL=, 11
  4099.                 and multitasking, 36                and installation, 7
  4100.                 in OS/2 DOS sessions,               and multiple configu-
  4101.                   46                                  ration utilities, 14
  4102.             help on, 19                             in DOS version 2.x, 15
  4103.             programming interface, 63               in OS/2 1.x, 43
  4104.             reference information, 2                in OS/2 2.x, 44, 47, 52
  4105.         Compatibility, 23                           length of, 14
  4106.             and disks, 31                   Configuration, 10
  4107.             and memory, 24                      troubleshooting, 59
  4108.             and the CPU, 23                 Coprocessor, see Numeric
  4109.             and video hardware and            coprocessor
  4110.               software, 29                  CPU, 23
  4111.             solving problems, 53            Critical errors, 12, 15
  4112.             with DOS, 32                    Cursor shape, 29
  4113.             with Microsoft Windows, 37
  4114.             with multitasking software,     D
  4115.               34
  4116.             with networks, 39               DBLSPACE, 31
  4117.             with Novell Netware, 40         DEL, speed of, 31
  4118.         Compressed drives, 31               Descriptions, see File
  4119.             and installation, 5               descriptions
  4120.         COMSPEC                             DESQview, 15, 35
  4121.             environment variable, 17        Detecting 4DOS, 61
  4122.                 and disk swapping, 19       DIR, speed of, 31
  4123.                 and DOS FORMAT /S, 32       Directory scans, and Novell
  4124.                 and multitaskers, 35          Netware, 41
  4125.                 checking, 17                Disk drives, 31
  4126.                 setting automatically,          free space on, on networks,
  4127.                   11, 17                          40
  4128.                 setting manually, 9, 17         swapping to, 18
  4129.             path, 8, 11, 17                 Disk reset, 31
  4130.                 and OS/2 DOS sessions,      @DISKFREE variable function, on
  4131.                   11, 46, 47                  networks, 40
  4132.         CONFIG.SYS, 10                      Diskless workstations, 39
  4133.             4DOS commands in, 11            @DISKTOTAL variable function,
  4134.             and ANSI driver, 30               on networks, 40
  4135.             and DOS bug, 14                 @DISKUSED variable function, on
  4136.             and installation, 4, 6, 7         networks, 40
  4137.             in OS/2, 42                     DOS, see also MS-DOS / PC-DOS;
  4138.                 Dual Boot and Boot            Novell DOS
  4139.                   Manager, 50                   memory, see Memory
  4140.                 location of, 50                 shell, 1
  4141.             multiple configuration              version 2.x, 14
  4142.               utilities, 6, 32                  versions of, 1
  4143.             SET commands in, 32             DOS sessions, see OS/2 DOS
  4144.                                               sessions
  4145.                                             DOS version 2.x, 14
  4146.                                             DOS=UMB, in CONFIG.SYS, 28
  4147.  
  4148.         -------------------------------------------------------------------
  4149.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 69
  4150.  
  4151.                                                                       Index
  4152.         -------------------------------------------------------------------
  4153.  
  4154.         DOS_SHELL, see OS/2 DOS             Help system (continued)
  4155.           sessions                              location of files, 22
  4156.         DR DOS, see Novell DOS                  options, 22, 30
  4157.         DRAWBOX, 29                         HELPCFG, see Help system
  4158.         DRAWHLINE, 29                       History list, local and global,
  4159.         DRAWVLINE, 29                         12, 26, 27
  4160.         Drive, see Disk drives              HMA, see Memory
  4161.         Dual Boot, see OS/2
  4162.                                             I
  4163.         E
  4164.                                             .INI file, see 4DOS.INI
  4165.         EGA, 29, 30                         Installable commands, 63
  4166.         EMS, see Memory                     Installation, 4
  4167.         Environment                             and DOS 2.x, 4
  4168.             loading in UMBs, 27                 and OS/2 Dual Boot and Boot
  4169.             memory space for, 12, 15              Manager, 5
  4170.             size of, and compatibility          automated, 6
  4171.               problems, 55                      directory for, 4
  4172.         Expanded memory, see Memory             manual, 7
  4173.         Extended memory, see Memory             of downloaded updates, 4, 7
  4174.                                                 on diskettes, 7
  4175.         F                                       preparations
  4176.                                                     under DOS, 4
  4177.         File descriptions                           under OS/2, 5
  4178.             and disk performance, 31            reversing, 8
  4179.             programming for, 64                 stopping, 7
  4180.         File names, on networks, 39         INT 2E, 65
  4181.         File passwords, in Novell DOS,      INT 2F, 61
  4182.           33
  4183.         Floppy disks, 31                    K
  4184.         FORMAT /S command, 32
  4185.         Free memory, see Memory             KEYSTACK
  4186.         FREE, on networks, 40                   and multitasking, 37
  4187.                                                 programming interface, 62
  4188.         G                                   KSTACK.COM, 8, 16
  4189.                                                 and multitasking, 37
  4190.         Guided tour, 1, 6, 7
  4191.                                             L
  4192.         H
  4193.                                             LH, 27
  4194.         Hard drives, 31                     LIST, 29
  4195.         Hardware compatibility, see         LOADHIGH, 27
  4196.           Compatibility                     Local and global aliases and
  4197.         Help system, 2, 19                    history, 12, 26, 27
  4198.             /? option, 20
  4199.             and monochrome monitor, 30      M
  4200.             colors, 21
  4201.             configuring, 21                 Master environment, see
  4202.             keystrokes, 20                    Environment
  4203.                                             MEMORY, 26
  4204.  
  4205.         -------------------------------------------------------------------
  4206.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 70
  4207.  
  4208.                                                                       Index
  4209.         -------------------------------------------------------------------
  4210.  
  4211.         Memory, 24                          Multitasking software
  4212.             allocation conflicts, 57          (continued)
  4213.                 and networks, 59                and KEYSTACK, 37
  4214.                 and Windows, 58                 Microsoft Windows, 37
  4215.             base, 24
  4216.             checking status, 26             N
  4217.             expanded (EMS), 24, 25
  4218.                 hardware, 28                Networks, 39
  4219.                 swapping to, 18, 27             disk access problems on, 31
  4220.             extended, 25                        disk space calculations on,
  4221.                 4DOS's use of, 26                 40
  4222.             extended (XMS), 25                  disk swapping on, 40
  4223.                 4DOS's use of, 26               diskless workstations on,
  4224.                 swapping to, 18                   39
  4225.             high memory area (HMA), 25          file and directory names
  4226.             problems with, 27                     on, 39
  4227.             upper, 24                       Novell DOS, 11, 25, 32, 33
  4228.             upper memory blocks (UMBs),         and LOADHIGH, 33
  4229.               25                                memory management, 27
  4230.                 4DOS's use of, 27               passwords, 33
  4231.                 and Windows, 58             Novell Netware, 40
  4232.                 regions, 28                     diskless workstations on,
  4233.                 system requirements               41
  4234.                   for, 28                   Numeric coprocessor, 24
  4235.             used by 4DOS, 18, 26
  4236.         Memory resident programs, see       O
  4237.           TSRs
  4238.         Menus, in CONFIG.SYS, 32            Options, see Startup Options
  4239.         Microsoft Windows, 36, 37           OS/2, 42
  4240.             and batch files, 38                 4OS2 product, 1
  4241.             and compatibility, 58               and 4EXIT, 48
  4242.             and secondary shells, 15            and 4START, 48
  4243.         Monochrome monitor, and help            and AUTOEXEC.BAT, 42, 48
  4244.           system, 22, 30                        and COMSPEC path, 11, 46,
  4245.         Mouse, in help system, 22                 47
  4246.         MS-DOS / PC-DOS, 32                     CONFIG.SYS file, 11, 42
  4247.             APPEND command, 32                  Desktop menu, 47
  4248.             bug in CONFIG.SYS                   DOS sessions, 43
  4249.               processing, 14                        and .INI file, 47
  4250.             FORMAT /S command, 32                   and 4DOS, 45
  4251.             memory management, 25, 27,              DOS_SHELL setting, 44,
  4252.               28                                      46, 47
  4253.             version 2.x, 4                          settings for, 44
  4254.             version 6.x, 13, 14                     startup commands for,
  4255.         Multiple configuration                        46
  4256.           utilities, 6, 14, 32
  4257.         Multitasking software, 34
  4258.             4DOS windows in, 35
  4259.             and COMSPEC, 35
  4260.             and disk swapping, 37
  4261.  
  4262.         -------------------------------------------------------------------
  4263.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 71
  4264.  
  4265.                                                                       Index
  4266.         -------------------------------------------------------------------
  4267.  
  4268.         OS/2 (continued)                    Shell
  4269.             Dual Boot and Boot Manager,         DOS shell, 1
  4270.               42, 49                            primary
  4271.                 and 4DOS installation,              and multitasking, 35,
  4272.                   5                                   37
  4273.                 and 4DOS.INI, 51                    in OS/2, 48
  4274.                 and 4EXIT, 51                       startup options, 11
  4275.                 and 4START, 51                      swap size, 18
  4276.                 and AUTOEXEC.BAT, 50            secondary
  4277.                 and CONFIG.SYS, 50                  and multitasking, 35
  4278.                 file locations, 50                  startup options, 15
  4279.             installing 4DOS for, 5                  swap size, 18
  4280.             temporary VDMs, 46, 48                  to run a single
  4281.             version 1.x, 43                           command, 16
  4282.             version 2.x, 43                 Software compatibility, see
  4283.                                               Compatibility
  4284.         P                                   Software interactions, 55
  4285.                                             Stacker, 31
  4286.         Passwords, in Novell DOS, 33        Startup options
  4287.         PATH, length of, 54                     //iniline, 11, 15, 36, 47
  4288.         Primary shell, see Shell                /C, 16, 46
  4289.         Programming, for 4DOS, see              /D, 12
  4290.           Technical Information                 /E, 12, 15
  4291.                                                 /F, 12, 15
  4292.         Q                                       /K, 13, 16
  4293.                                                 /L, /LA, and /LH, 12, 16
  4294.         QEMM, 28                                /P, 13
  4295.         Quick help, 20                          /Y, 13
  4296.                                                 @inifile, 11, 15, 35, 47
  4297.         R                                       commands in, 13, 16
  4298.                                                 primary shell, 11
  4299.         RAM, see Memory                         secondary shell, 15
  4300.         RAM disk, 26                        SuperStor, 31
  4301.             swapping to, 18                 Support, 3
  4302.         README.1ST file, 6                  Swapping
  4303.         Reference information, 2                and compatibility, 27
  4304.         Reference manual, 2                     and multitasking software,
  4305.         Resident portion (of 4DOS), 18,           37
  4306.           26                                    file names used by, 18, 37
  4307.             loading in UMBs, 27                 on networks, 40
  4308.                                                 types of, 18
  4309.         S
  4310.                                             T
  4311.         Screen, 29
  4312.             size, 29                        Task switching software, see
  4313.         SCRPUT, 29                            Multitasking software
  4314.         Secondary shell, see Shell          Technical information, 61
  4315.         SELECT, 29                              DESCRIPT.ION, 64
  4316.         SET, in CONFIG.SYS, 32                  detecting 4DOS, 61
  4317.                                                 installable commands, 63
  4318.  
  4319.         -------------------------------------------------------------------
  4320.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 72
  4321.  
  4322.                                                                       Index
  4323.         -------------------------------------------------------------------
  4324.  
  4325.         Technical information
  4326.           (continued)
  4327.             INT 2E, 65
  4328.             KEYSTACK, 62
  4329.         Technical support, 3
  4330.         Transient portion (of 4DOS),
  4331.           18, 26
  4332.         TSRs, 23
  4333.             and compatibility, 55
  4334.             and multitasker startup
  4335.               files, 36
  4336.             and OS/2 DOS sessions, 49
  4337.             loading order, 56
  4338.  
  4339.         U
  4340.  
  4341.         UltraVision, 30
  4342.         UMBs, see Memory
  4343.         Uninstalling 4DOS, 8
  4344.  
  4345.         V
  4346.  
  4347.         VDM, see OS/2
  4348.         VGA, 29, 30
  4349.         Video hardware, 29
  4350.         VSCRPUT, 29
  4351.  
  4352.         W
  4353.  
  4354.         Wildcards, and DEL speed, 31
  4355.         Windows, see Microsoft Windows
  4356.         Windows NT, 4DOS/NT product, 1
  4357.  
  4358.         X
  4359.  
  4360.         XMS, see Memory
  4361.  
  4362.  
  4363.  
  4364.  
  4365.  
  4366.  
  4367.  
  4368.  
  4369.  
  4370.  
  4371.  
  4372.  
  4373.  
  4374.  
  4375.  
  4376.         -------------------------------------------------------------------
  4377.         Copr. 1993 JP Software Inc.   4DOS Intro. & Installation Guide / 73
  4378.