home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / educatio / pcl570.zip / DOS2.TUT < prev    next >
Text File  |  1993-02-05  |  50KB  |  1,041 lines

  1.        
  2.        ---------------------------------------------------------------- 
  3.  
  4.                              ADVANCED DOS COMMANDS 
  5.  
  6.        ---------------------------------------------------------------- 
  7.        
  8.        This tutorial covers advanced DOS commands, updates for DOS 
  9.        version 5.0, keyboard shortcuts, function key assignments and a 
  10.        special functional index of DOS commands which is located at the 
  11.        end of the tutorial. 
  12.  
  13.        Life gets more interesting the longer you stay in the game. The 
  14.        more you want to accomplish with a computer, the more you need 
  15.        advanced DOS commands. But first, let's take a side trip to the 
  16.        keyboard and study some powerful DOS shortcuts.
  17.        
  18.        ---------------------------------------------------------------- 
  19.        
  20.                                FUNCTION KEY USE
  21.  
  22.        ---------------------------------------------------------------- 
  23.  
  24.        The keyboard function keys labelled F1 through F10 access a 
  25.        special buffer storage area of DOS. Additional key combinations 
  26.        offer other shortcuts. Some keyboards have twelve function keys 
  27.        while others have the function keys arranged along the top of 
  28.        the keyboard rather than stacked along the side. 
  29.  
  30.        The best way to understand how the function keys work is to 
  31.        pause and explain the concept of a keyboard buffer which is 
  32.        little more than a temporary storage area in the computer's 
  33.        memory. A buffer is necessary because the activities of input 
  34.        and output (using the keyboard or printer) are much slower than 
  35.        those activities which interact with the speedy RAM memory chips 
  36.        and CPU. 
  37.  
  38.        Data from the keyboard is placed into a memory buffer area until 
  39.        you signal the PC that you are ready to move on to the next 
  40.        task. Usually this signal is the carriage return or enter key. A 
  41.        buffer storage area can vary in size. For the DOS command line 
  42.        buffer, up to 127 characters can be contained. When data is 
  43.        entered into the keyboard buffer is stays there until flushed 
  44.        out. DOS allows some limited repeating and editing of data 
  45.        stored in the buffer (data you previously typed at the keyboard) 
  46.        by use of the function keys. 
  47.        
  48.                             The FUNCTION Keyboard:
  49.        
  50.        The following discussion applies to the function keys WHEN 
  51.        YOU ARE USING DOS! When you use an application such as your word 
  52.        processor or database program the function keys will probably 
  53.        have different uses!
  54.        
  55.        The function keys assume different roles for different programs. 
  56.        F1 through F5 have special meaning within DOS. They help in 
  57.        reissuing/editing the last DOS command typed.         
  58.  
  59.        F1 Repeats one character per keystroke of the previous DOS command 
  60.        typed. 
  61.  
  62.        F2 Repeats characters stored in the buffer up to the character 
  63.        you typed after pressing F2. 
  64.  
  65.        F3 Repeats the entire LAST command. USEFUL! Repeat last command 
  66.        and edit it over again with other function keys or the backspace 
  67.        key. 
  68.  
  69.        F4 Deletes all characters in the buffer up to the character you 
  70.        typed after F4. The buffer is not displayed. To see the buffer 
  71.        on screen tap F3. 
  72.  
  73.        F5 Stores the current line for re-editing. F5 is used with the 
  74.        other four keys so you can repair long DOS commands which 
  75.        weren't typed in properly.  When you press F5 the current line 
  76.        will be marked and the cursor will move down one line WITHOUT a 
  77.        new prompt. Then use the other function keys to finish editing. 
  78.  
  79.                                The main Keyboard
  80.    
  81.        Delete key deletes character on or to the right of the cursor
  82.  
  83.        Backspace key removes last character typed - to the left of 
  84.        cursor 
  85.  
  86.        Insert key puts keyboard into insert mode    
  87.  
  88.        Escape key voids current input and exits or escapes to previous 
  89.        settings
  90.  
  91.        PageUp key in many applications moves you up one screen of text
  92.  
  93.        PageDown key in many applications moves you down one screen of 
  94.        text 
  95.  
  96.        Left and right arrow keys move cursor left and right without 
  97.        deleting 
  98.  
  99.        Numlock key toggles (goes back and forth) between numbers on the 
  100.        numeric keypad and cursor control (functions such as page down, 
  101.        move cursor right, etc)      
  102.  
  103.        Pressing two or more keys at the same time produces further 
  104.        results. You may hold down the Control (Ctrl) key and then 
  105.        press another key for a required result. Here are some two key 
  106.        combinations. Hold down the first key, then press the second:
  107.  
  108.        Shift-PrtSc prints one screen of data on your printer. 
  109.  
  110.        Control-C or Control Break Aborts current DOS command. USEFUL! 
  111.  
  112.        Control-H or backspace removes last character typed 
  113.  
  114.        Control-P or Control-PrtSc sends output to printer until turned 
  115.        off by typing same key combination (Control P) a second time. 
  116.        Whatever appears on screen will be sent to printer until turned 
  117.        off with control P a second time. This is a little used, often 
  118.        forgetten and HIGHLY useful key combination! 
  119.        
  120.        Control Numlock or Control S pauses screen output. Press any key 
  121.        to continue
  122.  
  123.        Control-Alt-Delete keys together shuts down computer and WIPES 
  124.        OUT all computer data!  This is also called a "warm boot" 
  125.        as compared to a cold boot (completely turning off computer, 
  126.        then turning back on again.) Either of these methods means that 
  127.        ALL DATA AND PROGRAMS LOST from RAM memory but whatever data 
  128.        stored on disk(s) remains.
  129.  
  130.        Other keys have special meanings and can be confused with their 
  131.        look-alike twins: the slash (/) and Backslash (\) are different 
  132.        but easily confused as are the apostrophe (') and grave accent (`), 
  133.        and also the capital O and Zero (0.) 
  134.  
  135.        ---------------------------------------------------------------- 
  136.  
  137.                        ADVANCED DOS COMMANDS AND METHODS
  138.        
  139.        ---------------------------------------------------------------- 
  140.  
  141.        Now on to some of the more advanced DOS commands, files and 
  142.        methods which we continue from the previous DOS tutorial: 
  143.  
  144.        -- AUTOEXEC.BAT -- is not a DOS command but a small text file 
  145.        which gives the user an automatic way to specify a precise 
  146.        series of DOS commands whenever the computer is started each 
  147.        day. Within AUTOEXEC.BAT you can specify system variables such 
  148.        as the PATH and PROMPT commands, load or start a menu system 
  149.        with a variety of program choices, load memory resident "TSR" 
  150.        programs such as a calculator or notepad, run other batch files 
  151.        or start one specific program such as your word processor every 
  152.        time the computer is turned on. You can create or modify an 
  153.        AUTOEXEC.BAT file with any word processor which saves text in 
  154.        ASCII (plain text) format. Additional comments and explanations 
  155.        about the AUTOEXEC.BAT file are provided in the batch file 
  156.        tutorial elsewhere within PC-Learn. Following is a listing of 
  157.        the contents within a sample AUTOEXEC.BAT file. Note that it is 
  158.        simply a series of DOS commands which will be given every time 
  159.        the computer is first turned on: 
  160.        
  161.        echo off
  162.        date
  163.        time
  164.        path \dos;\wp;\util;\doc;\bat                     
  165.        prompt $P$G                                                    
  166.        verify on                                                      
  167.        mode bw80,r                                                    
  168.        type menu                                                      
  169.  
  170.        -- CONFIG.SYS -- is not a DOS command, but a small text file 
  171.        which tells DOS the system setup information or "custom 
  172.        configuration" of your computer. Whenever additional hardware is 
  173.        added such as a tape drive, mouse, ram drive or other device, 
  174.        you will usually add a DEVICE command to the CONFIG.SYS file so 
  175.        that DOS can recognize the new hardware or software device. 
  176.        Performance can also be increased by adding other parameters to 
  177.        the CONFIG.SYS file such as the FILES and BUFFERS commands. On 
  178.        startup, CONFIG.SYS helps DOS determine the configuration of 
  179.        hardware, RAM memory, keyboard, ramdisk, hard drives and other 
  180.        "customizations" to your system and is usually stored in the 
  181.        root or main directory of your hard drive. The CONFIG.SYS file 
  182.        can be prepared or altered with your word processor operating in 
  183.        ASCII mode (plain text). You could also use the COPY CON command 
  184.        or any text editor such as Edlin to prepare a CONFIG.SYS file. 
  185.        Following is a listing of the contents within a sample CONFIG.SYS 
  186.        file: 
  187.  
  188.        device=ansi.sys 
  189.        device=vdisk.sys  
  190.        buffers=20 
  191.        files=20 
  192.               
  193.        -- MODE --  (External) is a command to setup the printer, 
  194.        display and communications outputs of your computer. Use mode 
  195.        when you have several printers or two or more monitors such as 
  196.        both color and monochrome.
  197.  
  198.        Example: A>mode CO80             (set display mode to color,80 
  199.                                         columns wide) 
  200.  
  201.        Example: B>mode lpt1=com1        (set printer to com port number 
  202.                                         1) 
  203.  
  204.        Example: A>mode com1:10,n,8,1,p  (set modem transmission 
  205.                                         settings) 
  206.  
  207.        Example  B>mode bw80,r           (set monitor to b&w text, 80 
  208.                                         columns wide) 
  209.  
  210.        -- MORE -- (External) causes the display to pause when reading a 
  211.        long file or directory. More is always combined with other DOS 
  212.        commands. See below for an example using the MORE command.
  213.  
  214.        -- REDIRECTION AND PIPING -- Are not DOS commands but powerful 
  215.        methods for sending information to or through other DOS 
  216.        utilities.
  217.        
  218.        Some commands, for example DIR, can use MORE, SORT and other DOS 
  219.        "filters" with a special vertical bar | in a method called 
  220.        "piping". Piping is best explained as "filtering" a DOS action 
  221.        through yet another DOS program or command. 
  222.  
  223.        Example A>dir|more              (DIR listing is "piped" through 
  224.                                        MORE to pause after each 
  225.                                        screenful of information) 
  226.                                        Try it with a long listing!
  227.  
  228.        Example: B>type letter.txt|more   (the file letter.txt is "piped" 
  229.                                          through MORE) 
  230.  
  231.        --  < and > -- are input/output symbols. They help DOS send and 
  232.        receive signals properly. You can redirect the output from or 
  233.        towards a particular device. For example if the output of a file 
  234.        normally goes to the screen you could redirect it with the > 
  235.        symbol to the printer. Or you could redirect the input for a DOS 
  236.        command from a file, rather than the keyboard so you would not 
  237.        have to answer a series of questions - the file would provide 
  238.        the keystrokes. 
  239.  
  240.        Example: A>sort<letter.txt>letter.new    (sort letter.txt and 
  241.                                                 output to a new file 
  242.                                                 called letter.new) 
  243.  
  244.        Example: B>dir>prn  (meaning produce a directory listing, but 
  245.        send the output to the printer, rather than the screen) 
  246.  
  247.        Example: format b:<special.txt (format a floppy and accept input 
  248.        keystrokes from the file special.txt rather than input from the 
  249.        keyboard so you don't have to answer yes/no or pause)
  250.  
  251.        These piping and redirection methods are powerful and subtle.
  252.  
  253.        -- SORT -- (External) sorts data lists in alphabetical or 
  254.        reverse order. It is frequently used with redirection and piping 
  255.        methods to sort directories, lists of text or to output its 
  256.        actions into a new file or directly to the printer. 
  257.  
  258.        Example: A>dir|sort    Example: sort<letter.doc>new.doc 
  259.  
  260.        -- GRAPHICS -- (External) allows you to print the contents of a 
  261.        graphics display (e.g., a lotus graph on the screen) while using 
  262.        the SHIFT-PRTSC key combination mentioned earlier. Graphics mode 
  263.        software uses medium resolution CGA color displays or other 
  264.        graphics displays which will not print using the standard SHIFT-
  265.        PRTSC key until the DOS graphics system has been loaded. 
  266.        Graphics is a memory resident program which uses some RAM 
  267.        memory. If a screen display will not print on your printer by 
  268.        tapping SHIFT-PRTSC, trying running graphics first then retry 
  269.        SHIFT-PRTSC.
  270.  
  271.        Example: A>graphics 
  272.  
  273.        -- FIND -- (External) searches for words and phrases in a file. 
  274.        You cannot use wild cards (? and *). You must use quotes 
  275.        surrounding the phrase or word which is sought. 
  276.  
  277.        Example: A>find "chocolate candy bars" letter.txt bones.wks 
  278.  
  279.        (meaning: search for "chocolate candy bars" within the two 
  280.        files letter.txt and bones.wks then report any occurrences)
  281.  
  282.        -- ASSIGN -- (External) tells DOS to send disk requests for one 
  283.        drive to the other. Effectively renames your a drive the b drive 
  284.        and vice versa. Allows you to access only certain drives for 
  285.        security reasons (remote modem use, for example). By itself, 
  286.        assign simply restores the normal drive configurations and 
  287.        names. DISKCOPY and FORMAT commands ignore assign! Use of assign 
  288.        command is rare. 
  289.  
  290.        Example: B>assign c=a 
  291.  
  292.        -- PATH -- (Internal) tells DOS where to search for executable 
  293.        files in the subdirectories you specify. Allows simultaneous 
  294.        searching of many subdirectories at once. Path eliminates the 
  295.        need to search through many subdirectories manually. Frequently 
  296.        a PATH command is used in your autoexec.bat file when starting 
  297.        the computer. A path command is highly recommended for use with 
  298.        all hard drives and, as stated, is embedded within the 
  299.        AUTOEXEC.BAT file as a permanent command. 
  300.  
  301.        Example: C>path \letters;\finance;\utils 
  302.  
  303.        -- PROMPT -- (Internal) allows change of the DOS prompt - for 
  304.        example, the dull A> on screen. $P shows the active directory. 
  305.        $G shows the > symbol. This can be set in the main autoexec.bat 
  306.        file to initialize the prompt every time you start your 
  307.        computer. With the proper commands you can dramatically change 
  308.        your prompt to even display words, pictures or phrases rather 
  309.        than a typical C>
  310.        
  311.        See batch file tutorial covered later. 
  312.  
  313.        Example: A>prompt $P$G.   (result is:    a:\>   ) 
  314.  
  315.        -- TREE -- (External) shows the structure of the subdirectories 
  316.        on your disk. You can check the arrangement of the root (main) 
  317.        and all subdirectories. Tree/f shows all file names. 
  318.  
  319.        Example: B>tree/f 
  320.  
  321.        -- ATTRIB -- (External) allows a file to be set as "read only" 
  322.        (non-erasable). Attrib +r marks for read only. Attrib -r removes 
  323.        this. Protects files from modification or removal. Attrib alone 
  324.        displays file attributes. A small r appears to the left of a 
  325.        files directory listing if that file is read only (protected). 
  326.        Only available in DOS 3.0 and later. 
  327.  
  328.        Example: A>attrib +r letters.doc 
  329.  
  330.        -- BACKUP & RESTORE -- (External) used to making spare copies 
  331.        (backups) of hard disk data. Copies groups of files to floppies. 
  332.        Restore reverses the process and puts the files from floppies to 
  333.        hard disk. Backup/m copies only files modified since the last 
  334.        backup. Backup/s copies all subdirectories and their files. 
  335.        Backup/d copies files modified after the date you specify. 
  336.        Backup/a adds files to a disk that already contains other files. 
  337.        Files copied to floppies with backup can't be used (they are 
  338.        "encoded") until they are restored ("unencoded"). Restore/s puts 
  339.        back all subdirectory files. 
  340.  
  341.        Example: A>backup c:\*.* a:/s 
  342.  
  343.        Example: C>restore a:\*.* c:/s 
  344.  
  345.        -- EDLIN -- (External) is a small word processor/text editor 
  346.        which prepares text files. DOS version 5.0 uses an upgraded 
  347.        text editor called EDIT which is easier to use the Edlin.
  348.       
  349.        Edlin's output is ASCII (plain text). Edlin is rudimentary and 
  350.        provides editing line by line. Other word processors and text 
  351.        editors can output ASCII files more quickly and easily, but 
  352.        Edlin is good for short jobs such as preparing batch files. The 
  353.        COPY CON command (discussed earlier) will do the job also. The 
  354.        entire list of Edlin commands is detailed in your DOS manual. 
  355.  
  356.        Example: A>edlin go.bat  (starts Edlin and loads the file go.bat)
  357.          
  358.        -- RAMDRIVE.SYS -- (used in MS-DOS, see below) (External)
  359.        
  360.        -- VDISK.SYS --  (used in PC-DOS, see below) (External) 
  361.        
  362.        Both of the above files are equivalent "ramdisks" which allow you 
  363.        to construct an artificial software disk drive in RAM computer 
  364.        memory. It is very fast and is also known as a virtual disk. 
  365.        RAMDRIVE.SYS or VDISK.SYS is usually placed in the CONFIG.SYS 
  366.        file via the DEVICE command. RAMDRIVE.SYS or VDISK.SYS is 
  367.        available in DOS 3.0 and later. DOS 2.0 users can use 
  368.        alternative "add in" RAMDISK utilities to produce the same 
  369.        result. Within the CONFIG.SYS file the following statement might 
  370.        appear for users of this device: 
  371.  
  372.        Example: device=vdisk.sys 128    (sets up a ramdisk of 128,000 
  373.                                         bytes in size) 
  374.        
  375.         ---------------------------------------------------------------- 
  376.  
  377.                                 DOS VERSION 5.0
  378.  
  379.        ---------------------------------------------------------------- 
  380.  
  381.        In 1991 Microsoft made DOS more powerful, smarter, sleeker and 
  382.        vastly more helpful. A variety of major and minor changes to this
  383.        classic operating system provide something useful for everyone. 
  384.        While most computer owners can take advantage of this cornucopia 
  385.        of new features, a few may not need to upgrade to DOS 5.0. Let's 
  386.        examine the "new and improved" DOS. 
  387.        
  388.        Five major changes were made with DOS version 5.0:
  389.        
  390.        1) An on-line help system was added so that users could access 
  391.        brief "help screens" for reminders about specific DOS command 
  392.        syntax and usage. The DOS manual was also substantially improved 
  393.        and rewritten. 
  394.        
  395.        2) By using the extended or "high memory" system of computers 
  396.        equipped with 80286, 80386 or 80486 CPU processors and additional 
  397.        RAM memory beyond the conventional 640K, DOS 5.0 can now load 
  398.        memory resident programs, device drivers and even DOS itself 
  399.        into extended memory thus leaving more room in conventional 
  400.        memory for application software - a potent plus for memory 
  401.        starved software. Up to 622K of memory can be made available to 
  402.        conventional memory. Microsoft Windows 3.0 applications and 
  403.        large DOS applications such as spreadsheets and database 
  404.        programs accelerate with access to this additional memory. 
  405.        
  406.        3) A new extended memory manager allows 80386 or 80486 computers 
  407.        to turn extended memory into LIM (Lotus-Intel-Microsoft) 
  408.        expanded memory. This provides popular programs such as Lotus 
  409.        123 and others with the capability to automatically use memory 
  410.        more effectively and releases additional conventional memory for 
  411.        data and application software. 
  412.        
  413.        4) New commands such as UNDELETE, MIRROR and UNFORMAT were added 
  414.        to allow for the recovery of accidentally deleted files or 
  415.        subdirectories. A new DOSKEY command was also added to allow for 
  416.        convenient recall of previous DOS command keystrokes and also 
  417.        provides keyboard macro commands. 
  418.  
  419.        5) A new graphical interface or shell and full screen "mini-word 
  420.        processor" text editor was made available. Users can work from 
  421.        the DOS prompt command line or the new shell and text editor. 
  422.        The GWBASIC language system, present in most versions of DOS, 
  423.        was provided with a fresh new interface and editor. The setup or 
  424.        installation routine for DOS 5.0 cleverly allows users to backup 
  425.        earlier DOS files - just in case they need to return to a 
  426.        previous DOS version - and smoothly glides through installation 
  427.        without the need to completely reformat a hard drive from 
  428.        scratch, an annoying hallmark of earlier DOS versions. 
  429.  
  430.        Beyond these major features, smaller items provide icing on a 
  431.        useful software cake:
  432.  
  433.        A new SETVER command allows the user to change the apparent DOS 
  434.        version number so that older, finicky programs which demand a 
  435.        unique version of DOS run properly.
  436.  
  437.        The DOS directory or DIR command has been updated with 
  438.        additional switches which let users sort directory listings in a 
  439.        variety of ways without using the cumbersome SORT command. 
  440.  
  441.        Hard drive users also benefit from DOS 5.0 modifications. DOS 
  442.        5.0 can now create hard drive data partitions of up to 2 
  443.        gigabytes and can now function with more than two physical 
  444.        drives at a time. In a series of hard drives, now only one drive 
  445.        is required to contain a DOS partition for the entire system to 
  446.        work - a substantial savings in hard disk space. 
  447.  
  448.        However, not all computer owners need to upgrade to DOS 5.0. 
  449.        
  450.        Owners of older 8088 and 8086 CPU equipped machines - XT class 
  451.        computers - may find the urge to upgrade to DOS 5.0 to be less 
  452.        than overwhelming since the advanced memory management features 
  453.        are unusable on a machine having only 640K of RAM memory. 
  454.        However the new UNDELETE, UNFORMAT and MIRROR commands, refined 
  455.        editor, DOSKEY utility, improved Qbasic programming language 
  456.        interface and on-line help may be reason and convenience enough 
  457.        to upgrade. 
  458.  
  459.        Owners of 80286, 80386 or 80486 CPU equipped machines will 
  460.        probably wish to upgrade to DOS 5.0 to take advantage of the 
  461.        additional conventional memory which can be released for 
  462.        application software as well as the relocation of device drivers 
  463.        into high memory. 
  464.  
  465.        New or modified DOS 5.0 commands include:
  466.  
  467.        -- DOSKEY -- (External) 
  468.  
  469.        This DOS utility allows you to recall and edit DOS commands you 
  470.        previously entered at the DOS prompt. Unlike pressing the F3 key 
  471.        which recalls only the last command typed, DOSKEY gives you 
  472.        access to all previous commands typed and allows you to edit 
  473.        or change them. Keyboard macros or series of keystroke sequences 
  474.        may also be recorded and edited. DOSKEY is a memory resident TSR 
  475.        program (terminate and stay resident) which uses about 3K of 
  476.        conventional memory. 
  477.  
  478.        Note that in the syntax examples which follow, you may use 
  479.        one or several switches following a command if you wish: 
  480.  
  481.        (Example)   DOSKEY /REINSTALL /HISTORY /OVERSTRIKE
  482.  
  483.        In the above example three parameter switches follow the 
  484.        command. 
  485.  
  486.        Note in DOS syntax examples which follow that the bracket 
  487.        symbols [ and ] are NOT typed at the DOS prompt, but only serve 
  488.        to indicate an OPTIONAL parameter or switch.
  489.        
  490.        If you see a | symbol within a syntax example, it means run 
  491.        EITHER the command prior to the | OR run the command following 
  492.        the |, but NOT both commands at the same time. Do not confuse 
  493.        the | symbol given in a syntax example with the "piping symbol" 
  494.        which is a DOS redirection method sometimes used in DOS 
  495.        commands. For example, the syntax entry below provides for 
  496.        EITHER the /INSERT switch OR the /OVERSTRIKE switch. 
  497.  
  498.        DOSKEY syntax is:
  499.        
  500.        DOSKEY [/REINSTALL] [/BUFSIZE=size] [/MACROS] [/HISTORY] 
  501.               [/INSERT|/OVERSTRIKE] [macro=[text]]
  502.  
  503.        Parameters:
  504.  
  505.        /REINSTALL        Installs new copy of DOSKEY
  506.        /BUFSIZE=size     Set buffer size to "size" bytes (default=512)
  507.        /MACROS           Display current macros
  508.        /HISTORY          Display command history 
  509.        /INSERT           When editing, default to insert mode
  510.        /OVERSTRIKE       When editing, default to overstrike mode
  511.        macro             Name of macro to load or run
  512.        text              Macro definition
  513.  
  514.        Note that macros override or take precedence over internal 
  515.        commands such as DIR and CLS. Using this feature you can 
  516.        define new, personal DOS commands. 
  517.  
  518.        (Example)     DOSKEY FINDIT=DIR \$1 /S /B
  519.  
  520.        Using the above DOSKEY definition you have created a new command 
  521.        called FINDIT such that when you type FINDIT *.WKS all 
  522.        spreadsheet files (which usually end in WKS) will be displayed 
  523.        and listed on screen. DOSKEY can use advanced DOS characters 
  524.        such as piping, input and output redirection and replaceable 
  525.        parameters (e.g., |, >, <, $1)
  526.        
  527.        -- DOSSHELL -- (External)
  528.        
  529.        This is a useful menu program for those preferring a visual 
  530.        "point and shoot" method of dealing with DOS and managing files,
  531.        rather than typing commands at the DOS prompt. It is mouseable 
  532.        and provides a file viewer and task switcher so you can jump 
  533.        between software programs and return exactly where you left off 
  534.        without having to exit each application software program 
  535.        in progress. 
  536.        
  537.        DOSSHELL syntax is:
  538.  
  539.        DOSSHELL [/G[:res[n]]|/T[:res[n]]] /B
  540.  
  541.        Parameters:
  542.        
  543.        /G                Start DOSSHELL in graphics mode
  544.        res               Sets screen resolution with L = low res,
  545.                          M = medium res, H = High res.
  546.        n                 Resolution number which varies depending
  547.                          on video card/adapter in use
  548.        /T                Shell is run in text mode
  549.        /B                Shell is run in black and white mode
  550.  
  551.        Several functions can ONLY be run from DOSSHELL. For example, 
  552.        DOSSHELL's rename function can rename a subdirectory which 
  553.        cannot be done with the RENAME command from the DOS prompt 
  554.        command line. Likewise, the task switching function can only be 
  555.        run from DOSSHELL and cannot be activated from the command line
  556.        DOS prompt. 
  557.        
  558.        -- EDIT -- (External)
  559.  
  560.        This is a full-screen text editor or "mini-word processor" which 
  561.        offers a practical, intuitive alternative to the previous DOS
  562.        EDLIN text processor. EDIT features text search and replace 
  563.        capabilities, pull-down menus, on-line help, and block moves. 
  564.  
  565.        EDIT syntax is:
  566.  
  567.        EDIT [[d:] [path] filename] [/B] [/G] [/H] [/NOHI]
  568.        
  569.        Parameters:
  570.        
  571.        filename          Name of the file to be edited
  572.        /B                Run editor in black and white mode
  573.        /G                Run editor with fast updates on CGA screens
  574.        /H                Display maximum number of allowable lines
  575.        /NOHI             High intensity colors are removed/suppressed
  576.        
  577.        EDIT will not run without the companion file QBASIC.EXE in the 
  578.        current directory or path. When you start EDIT, internal changes 
  579.        are made to QBASIC's editor and you are in fact running a 
  580.        modified version of QBASIC's own editor! 
  581.  
  582.        -- EMM386 -- (External)
  583.  
  584.        This utility is a memory manager for the "upper memory area" of 
  585.        DOS, sometimes called the UMA. It can make your computer's 
  586.        extended memory simulate expanded memory - if you have extra RAM 
  587.        memory installed beyond the conventional 640K amount. This is 
  588.        useful for software programs such as a spreadsheet which can 
  589.        increase performance when given access to expanded memory. Users 
  590.        of computers having an 80386 or 80486 CPU can also load programs 
  591.        and device drivers into this upper memory area. Typically those 
  592.        using upper or high memory will have 1 Meg, 2 Megs or even 4 
  593.        Megs of RAM memory available.
  594.               
  595.        EMM386 syntax is:
  596.  
  597.        EMM386 [ON|OFF|AUTO] [W=ON|OFF]
  598.  
  599.        Parameters:
  600.        
  601.        ON                Enables the EMM386 device driver
  602.        OFF               Disables the EMM386 device driver
  603.        AUTO              Device driver placed in auto mode
  604.        W=ON              Enables Weitek math coprocessor
  605.        W=OFF             Disables Weitek math coprocessor
  606.  
  607.        Note that a few software applications will not work with the 
  608.        EMM386 driver due to virtual-8086 CPU operation of EMM386. 
  609.        Placing EMM386 in either OFF mode (shuts driver off until 
  610.        reactivated with the ON command) or AUTO mode (automatically 
  611.        disables when application begins, then enables EMM386 when 
  612.        application exits) solves this problem. You cannot switch EMM386 
  613.        to OFF or AUTO mode when EMM386 is providing expanded memory to 
  614.        an application such as your spreadsheet or if there are TSR 
  615.        software programs or device drivers loaded into upper memory 
  616.        which EMM386 is managing.
  617.        
  618.        -- HELP -- (External)
  619.  
  620.        This command provides help/reminder screens about DOS command 
  621.        syntax and use. To obtain a complete list of all DOS commands, 
  622.        simply type HELP at the DOS prompt. Slightly faster, if you need 
  623.        help with only a single command is to type  HELP /?  
  624.        
  625.        If you know the specific DOS command for which you need help,
  626.        simply type HELP and the command name. (Example) HELP COPY
  627.  
  628.        HELP syntax is:
  629.  
  630.        HELP [command]
  631.        
  632.        -- HIMEM.SYS -- (External)
  633.  
  634.        This device driver manages extended memory including the HMA 
  635.        (high memory area) and prevents programs from simultaneously 
  636.        using the same area of memory. HIMEM.SYS is usually installed 
  637.        via a statement in your CONFIG.SYS file and should precede in 
  638.        the CONFIG.SYS file other device drivers which use extended 
  639.        memory such as EMM386, SMARTDRIVE.SYS or RAMDRIVE.SYS. 
  640.  
  641.        -- LOADHIGH -- (External) 
  642.  
  643.        Allows the user to load a TSR program such as a calculator or 
  644.        other "popup" program into the upper memory area of RAM.
  645.  
  646.        LOADHIGH syntax is:
  647.  
  648.        LOADHIGH [d:] [path] filename [parameters]
  649.  
  650.        Parameters:
  651.        
  652.        filename          Name of the program to load into high memory
  653.        parameters        Parameters used by the program loaded
  654.  
  655.        Warning: note that LOADHIGH will, without notice, load a program 
  656.        into conventional lower memory if there is insufficient upper 
  657.        memory to accomplish the task. LOADHIGH will not warn you of 
  658.        this result, but you can use the MEM/C command to determine 
  659.        where the program was loaded or to verify memory configuration 
  660.        if in doubt. 
  661.        
  662.        -- MEM -- (External)
  663.  
  664.        This DOS 5.0 utility provides a concise listing of memory use. 
  665.        It provides information on which programs, device drivers and 
  666.        buffers are in use, memory consumed, free memory and location of 
  667.        all software. Works with conventional, expanded and extended 
  668.        memory. 
  669.  
  670.        MEM syntax is:
  671.  
  672.        MEM [/CLASSIFY|/DEBUG|PROGRAM]
  673.  
  674.        Parameters:
  675.        
  676.        /CLASSIFY         Provide list of programs in conventional and 
  677.        or /C             upper memory
  678.        
  679.        /DEBUG            Provide list of programs and device drivers
  680.        or /D             loaded in memory
  681.        
  682.        /PROGRAM          Provide list of programs in memory
  683.        or /P
  684.  
  685.        The /C parameter switch is perhaps the most useful for 
  686.        determining contents of upper memory and may called from a batch 
  687.        file such as AUTOEXEC.BAT to confirm critical upper memory 
  688.        usage. 
  689.  
  690.        -- MIRROR -- (External)
  691.  
  692.        This unique utility creates a special "tracking" file which 
  693.        stores the location of files which have been deleted but can be 
  694.        located and "unerased" with the UNDELETE and UNFORMAT commands. 
  695.        By keeping a detailed record of deleted files by loading MIRROR, 
  696.        chances are improved for file recovery in case an unwanted 
  697.        deletion occurs. It can also backup a copy of the hard disk 
  698.        partition tables to floppy in case of massive file deletions or 
  699.        virus infection. MIRROR has three distinct functions. 
  700.  
  701.        MIRROR syntax and parameters are:
  702.  
  703.        MIRROR /PARTN     Creates a backup copy of hard disk partition
  704.                          tables.
  705.  
  706.        MIRROR d: [/1]    Creates MIRROR disaster recovery file used by
  707.                          UNFORMAT command
  708.  
  709.        MIRROR /Tdrive[-entries] [...]
  710.        
  711.                          The above command places MIRROR in memory 
  712.                          resident mode and provides deletion tracking
  713.                          in memory which can be used by the UNDELETE 
  714.                          command
  715.  
  716.        MIRROR /U         Removes the MIRROR utility from memory
  717.  
  718.        Parameters:
  719.  
  720.        /PARTN            Makes backup of disk partition tables
  721.        /1                Retains only latest disk information
  722.        /Tdrive           Provide deletion tracking for drive specified
  723.        entries           Within a range of 1 to 999, provide deletion
  724.                          tracking for the specified number of entries
  725.                          for the specified drive
  726.  
  727.  
  728.        The value of the MIRROR command lies in frequent use to prevent 
  729.        data loss due to accidental formatting, virus infection or 
  730.        other disk problems where sensitive files must be reliably 
  731.        maintained.
  732.  
  733.        -- QBASIC -- (External)
  734.  
  735.        Entire volumes have been written about Qbasic, also known as 
  736.        QuickBasic. It is a complete programming language that allows 
  737.        you to design custom software for jobs which DOS programming cannot 
  738.        provide. Qbasic provides a way to construct small databases, 
  739.        printing software, calculators or simple business accounting 
  740.        software. Qbasic, as delivered with DOS 5.0, is an interpreter 
  741.        which must be present at all times along with your software 
  742.        program. 
  743.        
  744.        A basic compiler, which is an entirely different programming 
  745.        package, allows you to build standalone software packages which 
  746.        do not require a Qbasic interpreter to be present. Qbasic 
  747.        includes a workable program text editor for easy program 
  748.        construction. Basic programs use the extension BAS. For example 
  749.        you might see a file named BASEBALL.BAS which is run by loading 
  750.        it into the Qbasic interpreter. If you load Qbasic then can't 
  751.        figure how to get back to DOS, type the command  SYSTEM  then 
  752.        hit the return key/press enter. 
  753.  
  754.        Qbasic syntax is:
  755.  
  756.        QBASIC [/B] [/EDITOR] [/G] [/H] [/MBF] [/NOHI] [[/RUN][d:]
  757.                [path]filename]
  758.  
  759.        Parameters:                
  760.  
  761.        /B                Starts Qbasic in black and white mode
  762.        /EDITOR           Starts only the DOS editor
  763.        /G                Fast screen update on CGA displays
  764.        /H                Display maximum number of lines
  765.        /MBF              Change the internal Qbasic functions as follows:
  766.                          CVD to CVDMBF
  767.                          CVS to CVSMBF
  768.                          MKS$ to MKSMBF$
  769.                          MKD$ to MKDMBF$
  770.        /NOHI             Suppress colors in high intensity hues
  771.        /RUN              Run program specified by filename
  772.        filename          Name of Basic program to run
  773.  
  774.        You can now run a Qbasic program from a batch file, then return 
  775.        control back to the original batch file. Use the /RUN parameter 
  776.        switch and make the final statement in the Qbasic program  SYSTEM.
  777.  
  778.        -- SETVER --  (External)
  779.  
  780.        This small, but necessary utility is of use when you need to 
  781.        reset the internal DOS version number - such as DOS 5.0 - to an 
  782.        earlier version number so that older software which checks this 
  783.        number will run reliably. SETVER also updates a list of 
  784.        programs and the required DOS version number each program needs. 
  785.        If a program refuses to load and run or reports an incorrect DOS 
  786.        version number, SETVER may be the utility you need. Simply add 
  787.        the name of the problem software application and required DOS 
  788.        version number to the SETVER data list. Note that SETVER only 
  789.        works when it is loaded with a DEVICE or DEVICEHIGH statement 
  790.        in the CONFIG.SYS file. When you update or change entries in the 
  791.        SETVER data table, you must restart your computer to update the 
  792.        changes. 
  793.  
  794.        SETVER syntax is: 
  795.  
  796.        SETVER [d:path] [filename] [n.nn] [/DELETE] [/QUIET] 
  797.  
  798.        Parameters: 
  799.        
  800.        d:path            Drive and path where SETVER is stored
  801.        filename          Filename of software program to which a
  802.                          version number is given
  803.        n.nn              Version number to report: 2.11, for example
  804.        /DELETE           Delete an entry from the SETVER data table
  805.        /QUIET            Remove/suppress messages when /DELETE
  806.                          is active
  807.  
  808.        -- SHELL -- (External)
  809.  
  810.        This utility is a versatile menu system which lets you move, 
  811.        copy, delete, view and manage files with a point and click menu 
  812.        interface. File viewing is available in either ASCII plaintext 
  813.        or hexadecimal display mode. An onboard task switcher lets you 
  814.        start a software application, freeze the screen and data, exit 
  815.        to a different application then later return to your first 
  816.        application where you left off. New file management capabilities 
  817.        allow you to search an entire hard drive for a file, alter file 
  818.        attributes and even associate data files with a parent software 
  819.        application. Once the data is associated or "linked" to its 
  820.        parent software application, you can start the program simply by 
  821.        clicking on the data file - such as a spreadsheet template or 
  822.        word processing document. The shell display operates in graphics 
  823.        modes including 43 and 60 line displays. The shell consists of 
  824.        several operational files and help screens such as SHELLB.COM, 
  825.        SHELLC.EXE, SHELL.ASC, SHELL.CLR, SHELL.HLP and SHELL.MEU.
  826.  
  827.        -- SMARTDRIVE.SYS -- (External)
  828.  
  829.        This utility creates a disk cache in RAM memory which can speed 
  830.        up the performance of software applications which frequently 
  831.        access the hard drive. By using a cache, frequently needed data 
  832.        is stored in a fast RAM cache memory area rather than waiting on 
  833.        the more slowly accessed disk. By default, SMARTDRIVE.SYS is 
  834.        installed to extended memory to conserve conventional memory 
  835.        space for software applications. Using the /A switch after the 
  836.        command forces installation to expanded memory. Since 
  837.        SMARTDRIVE.SYS is a device driver, it must be installed as a 
  838.        DEVICE statement in your CONFIG.SYS file. 
  839.        
  840.        -- UNDELETE -- (External)
  841.  
  842.        Allows accidentally deleted files to be recovered. Since DOS 
  843.        deletes files by merely removing the filename from a master 
  844.        index called the allocation table, it is possible to recover the 
  845.        data if a recovery attempt is made SOON after the file is 
  846.        deleted to prevent newer files from eventually erasing the older 
  847.        data. Using the DOS MIRROR program substantially increases the 
  848.        recovery chance from file deletion disasters.
  849.        
  850.        UNDELETE syntax is: 
  851.  
  852.        UNDELETE [[d:][path]filename] [/LIST|/ALL] [/DOS|/DT]
  853.  
  854.        Parameters: 
  855.        
  856.        filename          Name of file(s) to undelete
  857.        /LIST             List the file which might be recoverable
  858.        /ALL              Undelete all files without prompting for
  859.                          first letter of each filename
  860.        /DOS              Ignore delete tracking file
  861.        /DT               Use delete tracking file
  862.        
  863.        A quick shortcut if you need to undelete several files without 
  864.        halting to supply the first letter of each one is to move to the 
  865.        directory where the files were stored by using the CHANGE 
  866.        DIRECTORY or CD command, then enter   UNDELETE /ALL. Since you 
  867.        are in the directory in question, UNDELETE will recover all 
  868.        files which you can later rename if necessary.
  869.  
  870.        -- UNFORMAT -- (External)
  871.  
  872.        Provides the capability to restore the directory structure of a 
  873.        floppy or hard disk which has been accidentally formatted with 
  874.        the FORMAT command or restructured with the RECOVER command.
  875.        Also provides capability to rebuild damaged hard disk 
  876.        partition/allocation tables. Works with local drives - will not 
  877.        work with drives which are part of a LAN (local area network.)
  878.        Use UNFORMAT to display hard disk partition info by typing the 
  879.        command: UNFORMAT /PARTN /L
  880.  
  881.        UNFORMAT syntax is: 
  882.  
  883.        UNFORMAT /PARTN [/L]    Restores hard drive partition table
  884.  
  885.        UNFORMAT d: [/U] [/L] [/TEST] [/P]
  886.                                Above unformats a hard or floppy disk
  887.  
  888.        UNFORMAT d: /J          Verifies that a disk contains MIRROR
  889.                                data file
  890.        
  891.        Parameters:
  892.  
  893.        /PARTN                  Saves copy of hard disk partition tables
  894.        
  895.        /L                      Displays partition info for selected
  896.                                drive. Without the /L switch: list every
  897.                                file and subdirectory found and ignore 
  898.                                MIRROR data file if existent.
  899.  
  900.        /U                      Unformat a disk without using MIRROR
  901.                                data file
  902.  
  903.        /TEST                   Perform test unformat. Do not actually
  904.                                unformat.
  905.  
  906.        /P                      Send report/data to printer port LPT1
  907.  
  908.        /J                      Verify MIRROR data file
  909.  
  910.        ---------------------------------------------------------------- 
  911.        
  912.                          DOS COMMAND FUNCTIONAL INDEX
  913.  
  914.        --------------------------------------------------------------- 
  915.        
  916.        Curiously, most computer manuals list DOS commands arranged 
  917.        alphabetically rather than by FUNCTION, in logical groupings. 
  918.        
  919.        Next, a brief functional index which is helpful for most 
  920.        beginners. PC-Learn tutorials do not attempt to present every 
  921.        DOS command, since some are best reviewed from your primary DOS 
  922.        manual. However, once you study this index, you will probably be 
  923.        able to locate the DOS command you need in your DOS manual. 
  924.  
  925.        File management commands:
  926.        
  927.        ATTRIB            Change or display file attributes
  928.        COMP              Compare two files
  929.        COPY              Copy one or several files
  930.        DEL               Delete one or several files
  931.        DIR               Display directory listing
  932.        ERASE             Delete one or several files
  933.        FC                Compare two files
  934.        RENAME (REN)      Rename file or files
  935.        REPLACE           Replace current files
  936.        VERIFY            Turn on/off write accuracy verification check
  937.        XCOPY             Copy one or several files
  938.        
  939.        Disk management commands:
  940.  
  941.        ASSIGN            Redirect disk access to alternate drive
  942.        CHDIR (CD)        Change directory, display current directory
  943.        CHKDSK            Check disk/files for fragmention, optional repair
  944.        DISKCOMP          Compare floppy diskettes
  945.        DISKCOPY          Produce identical copy of diskette
  946.        JOIN              Join a drive to a directory
  947.        MKDIR (MD)        Make a directory on disk
  948.        RMDIR (RD)        Remove a directory from disk
  949.        SUBST             Substitute drive for a directory
  950.        TREE              Display directory organization of disk
  951.  
  952.        DOS command, help, menu and screen commands:
  953.  
  954.        APPEND            Set search path for non executable file
  955.        CLS               Clear the monitor screen
  956.        COMMAND           Start the central command processor
  957.        DOSKEY            Start command line enchancer/macro features
  958.        DOSSHELL          Start DOS shell/menu features/task switching
  959.        EXPAND            Expand file(s) from stored/compressed state
  960.        HELP              Display help for one or more DOS commands
  961.        PATH              Set search path for executable files
  962.        PROMPT            Configure the displayed screen prompt
  963.        SET               Set environment variable
  964.        SETVER            Set/reset DOS version number
  965.        VER               Display version of DOS
  966.  
  967.        File disaster/recovery/prevention commands:
  968.  
  969.        BACKUP            Backup hard disk files to floppies
  970.        MIRROR            Backup partition table/create delete tracking file
  971.        RECOVER           Recover damaged files
  972.        RESTORE           Restore files backed up with BACKUP
  973.        SHARE             Start file-sharing utility for LAN networks
  974.        UNDELETE          Recover accidentally deleted files
  975.        UNFORMAT          Unformat/recover formatted disk
  976.  
  977.        Batch file commands:
  978.  
  979.        CALL              Call/start one batch file from another
  980.        ECHO              Turn on/off screen echo, display message
  981.        EXIT              Stop command processor
  982.        FOR               Run command once for each element of a repetition
  983.        GOTO              Jump to another line of a batch program
  984.        IF                Run command if condition stated is satisfied
  985.        PAUSE             Pause batch program execution until key press
  986.        REM               Remark/comment in batch program
  987.        SHIFT             Shift replaceable parameters to left
  988.  
  989.        Text file commands:
  990.  
  991.        EDIT              Start full screen editor/mini-word processor
  992.        EDLIN             Start rudimentary line editor
  993.        FIND              Locate a search string of characters
  994.        MORE              Display data one screen at a time
  995.        SORT              Sort text file data into sequential order
  996.        TYPE              Display internal contents of file
  997.  
  998.        Disk setup and configuration commands:
  999.  
  1000.        FASTOPEN          Install cache for rapid disk use
  1001.        FDISK             Configure hard disk partition(s)
  1002.        FORMAT            Prepare disk to receive data
  1003.        LABEL             Modify, label or delete disk volume label
  1004.        SYS               Copy DOS system files to disk
  1005.        VOL               Display disk volume label and serial number
  1006.  
  1007.        RAM Memory setup and configuration commands:
  1008.        
  1009.        EMM386            Install 80386 high memory manager
  1010.        LOADFIX           Load program above 64K memory area
  1011.        LOADHIGH          Load program into upper memory area
  1012.        MEM               Display memory use map
  1013.  
  1014.        Hardware setup, keyboard, printing and configuration commands:
  1015.  
  1016.        BREAK             Turn on/off break testing
  1017.        CHCP              Change code page (foreign keyboard)
  1018.        CTTY              Set console device
  1019.        DATE              Display or set date 
  1020.        GRAFTABL          Install graphics characters (foreign keyboard)
  1021.        GRAPHICS          Install graphics screen printing capability
  1022.        KEYB              Install alternate keyboard layout 
  1023.        MODE              Configure printer or modem ports, screen
  1024.        NLSFUNC           Install language support capabilities
  1025.        PRINT             Print spooler installation
  1026.        TIME              Display or set time
  1027.  
  1028.        Writing programs, changing programs:
  1029.  
  1030.        DEBUG             Start machine code debugger/assembler
  1031.        EXE2BIN           Convert EXE format file to COM format file
  1032.        QBASIC            Start Quick Basic interpreter programming 
  1033.                          system
  1034.  
  1035.        Tutorial finished. Have you registered PC-Learn to receive your
  1036.        bonus disks? Registration is encouraged. Shareware works on the
  1037.        honor system! Send $25 to Seattle Scientific Photography, 
  1038.        Department PCL5, PO Box 1506, Mercer Island, WA 98040. Latest 
  1039.        version of PC-Learn and two bonus disks shipped promptly!
  1040.  
  1041.