home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / educ / pcl50.zip / DOS1.TUT < prev    next >
Text File  |  1991-02-10  |  51KB  |  983 lines

  1.  
  2.        ████████████████████████████████████████████████████████████████ 
  3.  
  4.                  DOS FOR BEGINNERS - A LOW STRESS INTRODUCTION 
  5.  
  6.        ████████████████████████████████████████████████████████████████ 
  7.  
  8.        DOS stands for disk operating system. DOS is the software 
  9.        program which controls the primary input and output of your 
  10.        computer while you use an application program such as your word 
  11.        processor or database. Learning about DOS isn't that difficult 
  12.        after all. It seems that beginners live in fear of DOS. A better 
  13.        way to do things is to imagine that DOS is a kitchen of cooking 
  14.        tools and helpful chefs waiting for your instructions on what to 
  15.        fix for lunch. Here's the point of the analogy: you've got to be 
  16.        a little comfortable in the kitchen to live (no food - no you!) 
  17.  
  18.        Same thing with DOS. Learn just a little and you can survive 
  19.        with the computer. But just as with the kitchen, a steady diet 
  20.        of peanut butter sandwiches may keep you alive (i.e., passing 
  21.        familiarity with only 4 or 5 DOS commands) but as with the 
  22.        kitchen, life is more flavorful eating a variety of things like 
  23.        fish, salad and dessert (i.e., a richer DOS diet of varying 
  24.        commands.) 
  25.  
  26.        DOS or the disk operating system controls the flow of data to 
  27.        and from the screen, keyboard, disk drives, printers and of 
  28.        course the integrated circuit RAM (random access memory) chips 
  29.        wherein data is stored and processed. In as sense, DOS is the 
  30.        "verbal interpreter" through which your program (e.g., word 
  31.        processor) talks to the raw hardware. Somewhat like a person in 
  32.        a foreign land who needs a language interpreter. 
  33.  
  34.        Over the years DOS has been produced in a variety of versions. 
  35.        New commands and capabilities have been added and different 
  36.        versions for a variety of machines have evolved. Thus you might 
  37.        bump into a version of DOS for a true IBM machine and a version 
  38.        of DOS for a machine manufactured by Tandy. PC-DOS is a version 
  39.        of the more general MS-DOS developed for 16-bit computers using 
  40.        the Intel-manufactured line of CPU microprocessor chips. 
  41.  
  42.        DOS is a software program having MANY parts! It consists of one 
  43.        (or more) disk(s) having an input/output system, a command 
  44.        processor, and several utilities. Don't worry about all of this 
  45.        right now, just be aware that DOS has several parts. The 
  46.        utilities are small software program files which are found on 
  47.        your DOS disk. These utility files perform helpful tasks such as 
  48.        formatting a disk or checking it for errors. Since they are a 
  49.        part of DOS, they live on the same disk but are not needed all 
  50.        of the time (e.g., you may need to format disks only once or 
  51.        twice a week and thus occasionally use FORMAT.COM which lives on 
  52.        your DOS disk.) Thus these EXTERNAL disk-based utility programs 
  53.        live in the computer's RAM (random access memory) chips 
  54.        TEMPORARILLY while in use and usually are kept on the disk until 
  55.        needed. They are EXTERNAL commands. Other commands live inside 
  56.        RAM memory because they are used frequently and are INTERNAL DOS 
  57.        commands. The file FORMAT.COM is an example of an EXTERNAL 
  58.        COMMAND. An example of an INTERNAL COMMAND would be DIR. We will 
  59.        talk about these and other DOS commands later in this tutorial. 
  60.               
  61.        Don't worry about this distinction now. Just remember that there 
  62.        are two basic types of DOS commands which will start to become 
  63.        more apparent as we delve deeper into DOS magic. 
  64.  
  65.        ████████████████████████████████████████████████████████████████ 
  66.        
  67.                             USING DOS THE EASY WAY 
  68.                     DOS SHELLS AREN'T FOUND AT THE SEASHORE!
  69.        
  70.        ████████████████████████████████████████████████████████████████ 
  71.        
  72.        Before we start our main DOS tutorial a brief alternative:
  73.        
  74.        There is always an easier way to do anything - given enough 
  75.        time and ingenuity. If DOS commands and structure are not 
  76.        interesting or you don't have the time to learn DOS, there exist 
  77.        programs called DOS SHELLS which essentially provide DOS access 
  78.        for routine things like moving and copying files; these menu 
  79.        programs hide the DOS commands behind a series of "point and 
  80.        select" choices and options a little bit like the point and 
  81.        shoot menus you are using with PC-LEARN! 
  82.        
  83.        The typical DOS shell is a package which surrounds DOS (like a 
  84.        shell, hence the name) and allows you to perform the most common 
  85.        DOS functions by pressing only one or two keys or moving a 
  86.        highlighted arrow. Very appealing for beginners! This may be
  87.        all the DOS control most people need . . .
  88.  
  89.        This is a bit like using a cash machine at the bank. If you need 
  90.        to take money out of the machine, you insert your card, key in a 
  91.        password and press a few different choice buttons. DOS SHELLS 
  92.        provide a screen of DOS command CHOICES, allowing you to point 
  93.        the arrow or cursor at the task you want done. You see a menu of 
  94.        choices instead of a cryptic C> prompt. 
  95.  
  96.        The tradeoff is that you may miss out some of the more subtle 
  97.        operations that direct contact with DOS can provide, but then 
  98.        sometimes it is easier to get the task accomplished without 
  99.        fancy sidetracking and confusion. 
  100.   
  101.        There are two flavors of DOS shells: memory resident (stay put 
  102.        in the computer memory) - which are always available whether the 
  103.        DOS shell disk is in the machine or not. The second type, non-
  104.        resident shells live on the disk and must be present in the disk 
  105.        drive to be used. Non resident DOS shells do not use active RAM 
  106.        memory continuously and thus free more memory space for your 
  107.        main program. 
  108.  
  109.        Some DOS shells also have added features: security passwords and 
  110.        macros (the capability to cause one key or key combination to 
  111.        instantly type a long string of commands!) DOS shells are a good 
  112.        "beginners crutch" to let you work with the computer and its DOS 
  113.        operating system without having to learn the DOS commands and 
  114.        their somewhat arcane syntax. 
  115.  
  116.        Some practical and easy DOS shell packages include: Still River 
  117.        Shell, DOS2ools, PC Tools, Powermenu, Automenu, Dirmagic and 
  118.        Directory Freedom. If you would like a shareware copy of 
  119.        Directory Freedom with colorful menus of choices which works 
  120.        and looks a little like PC-LEARN and allows you to issue many
  121.        DOS commands with simple menus, contact the author of this 
  122.        package.
  123.        
  124.        If you are beginner and don't want to be troubled learning DOS, 
  125.        then a shell program is the easiest way to use the PC. 
  126.  
  127.        ████████████████████████████████████████████████████████████████ 
  128.  
  129.                         USING DOS - THE NUTS AND BOLTS 
  130.  
  131.        ████████████████████████████████████████████████████████████████ 
  132.  
  133.        Next let's jump into our main DOS tutorial, for those intersted.
  134.  
  135.        Remember, there are TWO ways to use DOS. Directly at the prompt 
  136.        using what is termed a COMMAND LINE. This is the detailed method 
  137.        we will study in a paragraph or so. A second way is to use a DOS 
  138.        SHELL to manage files and other data, as we discussed 
  139.        previously. 
  140.  
  141.        The following examples are best practiced at the DOS prompt A> 
  142.        or C> rather than within this tutorial. You might wish to print 
  143.        this tutorial and then practice the examples with your computer 
  144.        displaying a true DOS command line such as  C>
  145.  
  146.        To print this tutorial, use the print file option from the main 
  147.        PC-LEARN menu.
  148.  
  149.        Now let's begin the tutorial: 
  150.  
  151.        When you first turn on the computer with only the DOS disk in 
  152.        place, assuming some automatic startup software or menu program 
  153.        has not been installed, you will see the lonesome a> prompt or 
  154.        maybe c> prompt if you have a hard drive. 
  155.  
  156.        The DEFAULT drive is the disk drive in which DOS will search for 
  157.        a program or file if no other specification to another drive is 
  158.        given. The prompt tells you which drive is the default drive at 
  159.        the moment. DOS can specify up to 63 drive names (not just a, b 
  160.        and c!) 
  161.  
  162.        If a> is on the screen it is the DOS prompt and in this case the 
  163.        A: drive is the DEFAULT floppy drive which will be searched for 
  164.        information if you issue a command and ask DOS to execute it. 
  165.  
  166.        You can CHANGE the default drive simply. Let's try switching 
  167.        drives.  
  168.  
  169.        If you see   a>     try the following example: 
  170.  
  171.        (example)     b:    <press enter or return key> 
  172.  
  173.        The result on screen is now     b> 
  174.  
  175.        The computer now pays attention to b: (b drive). Hopefully there 
  176.        is a disk in b: drive or DOS gets confused and will give you an 
  177.        error message. 
  178.  
  179.        If you have a hard drive (which is usually the c: drive,) you 
  180.        can try switching back and forth between your a: drive and c: in 
  181.        a similar manner. Try switching around between drives, go back 
  182.        and forth a few times. Switching drives is a VERY IMPORTANT 
  183.        SKILL, SINCE DOS PAYS ATTENTION TO THE DEFAULT DRIVE WHOSE 
  184.        LETTER IS DISPLAYED!
  185.  
  186.        Next let's try some other simple DOS commands. Try these . . . 
  187.  
  188.        (example)                      a>ver   <then press enter key> 
  189.  
  190.        (example)                      a>time  <then press enter key> 
  191.  
  192.        (example)                      a>date  <then press enter key> 
  193.  
  194.        In the above examples, you first asked DOS to tell you what 
  195.        version of DOS you are using then a request to tell you the time 
  196.        and date. Get the idea? Type in a word or phrase and something 
  197.        happens. But just what are the words and phrases? Let's jump 
  198.        deeper . . . 
  199.  
  200.        (example)                      a>dir/p   <enter> 
  201.   
  202.        You get a listing of files in the drive (hopefully a disk is in 
  203.        the drive.) Notice that we added  /p to the end of a command. P 
  204.        is shorthand for "pause after each screenful."  The DIR command 
  205.        means directory (a list of files or programs on the disk.) You 
  206.        can modify a basic DOS command like DIR with additional COMMAND 
  207.        SWITCHES and ARGUMENTS (e.g., /p) which are fancy words which 
  208.        simply imply modifications to a basic DOS command. 
  209.  
  210.        Try this . . . 
  211.  
  212.        (example)        a>dir/w    <enter>   /w means "wide screen" 
  213.  
  214.        (example)        a>dir a:   <enter>   list a: drive contents 
  215.  
  216.        (example)        a>dir b:   <enter>   list b: drive contents 
  217.                                                                            
  218.        You will notice that the DOS prompt stays with or in the default 
  219.        drive you started from but can examine another drive directory 
  220.        then COME BACK to the default drive from where you started. 
  221.        Another way of explaining this is that you can switch back and 
  222.        forth between drives (typing a: or b:) and ask for directories 
  223.        OR you can stay in a drive and ask DOS to look at either a: or 
  224.        b: independently of the default drive. Flexibility! 
  225.  
  226.        Tip: A REMINDER: DOS is a computer operating system. Many of its 
  227.        commands once loaded stay inside the machine. As long as the 
  228.        power is on, these commands stay resident (stay put) and are 
  229.        called INTERNAL commands. DIR is an example of an INTERNAL 
  230.        COMMAND - it lives inside the computer once DOS is loaded. 
  231.        
  232.        EXTERNAL COMMANDS however only live on the DOS disk and can be 
  233.        copied to other disks (example: SORT.COM). They load TEMPORARILY 
  234.        into the computer memory, do their job and then are gone. 
  235.        EXTERNAL DOS COMMANDS MUST HAVE A DOS DISK (OR COPY) of that 
  236.        command in a disk drive when you need them. 
  237.  
  238.        While we are concentrating on DOS at the moment it is important 
  239.        to understand that DOS is only an operating system. DOS is the 
  240.        first step. The second step for most people is to use higher 
  241.        level (more useful) programs such as word processors, accounting 
  242.        systems, games (or whatever). 
  243.  
  244.        These higher level APPLICATION programs are started by entering 
  245.        a simple word or instruction at the DOS prompt. For example, if 
  246.        you purchased a word processing disk it might instruct you to 
  247.        insert that special disk into the computer and type:      
  248.        a>start    (then press enter key) The point is that DOS is a 
  249.        program which itself allows other more useful programs to be 
  250.        loaded into the PC and operated. 
  251.  
  252.        TIME TO JUMP TO LIGHTSPEED! 
  253.  
  254.        The listing which follows is a portion of the most useful DOS 
  255.        commands with examples and clarification tips. Your DOS manual 
  256.        contains many more.
  257.                                       
  258.        ██ DIR ██ (Internal command) lists a table of disk file 
  259.        contents. Use this command to view a disk volume label, all 
  260.        filenames, sizes of files in bytes, the date, time of file 
  261.        creation and amount of space left for storage on the disk. A 
  262.        disk for IBM PCs clones hold about 360,000 bytes or computer 
  263.        "words." DIR/W lists columns in "wide screen mode" DIR/P lists 
  264.        in "pause" mode (one screen at a time). You can also locate or 
  265.        find certain files. Example: a>dir letter.bak   Example: c>dir 
  266.        rll.wks. You can switch and view another directory.  
  267.        
  268.        Example:  c>dir b: 
  269.        
  270.        Example  a>dir c:   
  271.        
  272.        When you issue the DIR command your screen will produce a 
  273.        listing similar to this assuming you have a disk in the
  274.        floppy drive: 
  275.  
  276.                     COMMAND  COM    16037   2-15-84   3:55p   
  277.                     ANSI     SYS     1632   6-26-84   5:15p
  278.                     ASSIGN   EXE     1386   5-22-84   3:42p
  279.                     AUTOEXEC BAT       40   3-26-87   6:32a
  280.                     BACKUP   COM    11855  12-11-84   1:02p
  281.                     CHKDSK   COM     6468  10-19-83   7:51p
  282.                     DEBUG    COM    12223  10-19-83   7:52p
  283.                     DEVCNFG  COM     4621   9-18-85   7:01p
  284.                     DISKCOMP COM     2088   9-12-85   4:41p
  285.                     DISKCOPY COM     1409  10-19-83   7:51p
  286.                     DISKSHIP EXE     2376   8-29-85  11:08a
  287.  
  288.        In the above partial screen listing, the first word in each line 
  289.        is the filename. The second word is the file extension. 
  290.        (Example: the first file is actually named COMMAND.COM not  
  291.        COMMAND   COM ). The next number is the byte count or file size 
  292.        (i.e., how many computer words or bytes make up the file). The 
  293.        next item is the date of file creation. The final item is the 
  294.        time of file creation. This is very useful as you start to build 
  295.        up a collection of files! Which one is the latest and when did I 
  296.        write that financial report are common questions and good 
  297.        reasons why a date and time of file creation is important to 
  298.        both DOS and you. 
  299.  
  300.        Tip: FILE HANDLING with the DIR command and DOS. On the screen a 
  301.        directory listing might show a file as    PC-LEARN    WKS But 
  302.        the true syntax to DOS is always PC-LEARN.WKS The point is 
  303.        that you need a dot between the filename (first part) and the 
  304.        extension of the file (second part) or DOS cannot handle the 
  305.        file properly. 
  306.  
  307.        FILENAMES. There is a meaning to life, as they say. Filenames 
  308.        have meaning. The clue as to the use of a file usually resides 
  309.        in its three character file extension. Files can be typed in 
  310.        upper or lower case, DOS doesn't care! Names longer than eight 
  311.        letters will be shortened automatically to eight letters. File 
  312.        extensions longer than three letters will be shortened to three 
  313.        letters. The file name frequently gives a clue as to the nature 
  314.        of the file. The file extension or endname tells WHAT KIND of 
  315.        file it might be. 
  316.  
  317.        Acceptable characters which can be used to make up a file name 
  318.        are: A-Z  0-9  $#&@!()-{}'`_~ 
  319.  
  320.        Unacceptable characters which CANNOT be used in a filename are:        
  321.        |<>\^+=?/[]";,*  (and also)  Control characters and the space 
  322.  
  323.        Examples of filenames: 
  324.  
  325.        123.EXE             The program 123, an "executable" file. 
  326.                            Think of as a program that can be started 
  327.                            and "run" to do something. 
  328.  
  329.        GO.BAT              A Batch file (bat). Like an exe file. 
  330.                            Contains plain english DOS commands and can 
  331.                            be viewed with the DOS "type" command. 
  332.  
  333.        VIEW.COM            Unknown file, but a "command" type, 
  334.                            similar to an exe file.                  
  335.  
  336.        783.WKS             A worksheet file from lotus 
  337.                            possibly from July of 1983 (7/83) 
  338.  
  339.        README.TXT          Probably a text file in plain 
  340.                            english. Can be read and viewed with the 
  341.                            DOS command: TYPE (discussed below.)        
  342.  
  343.        XVC.DBF             Unknown file, but we might guess a dBase 
  344.                            database program database file.
  345.  
  346.        CONFIG.SYS          A PC system file. Helps "configure" your 
  347.                            computer for specific hookups, and equipment. 
  348.  
  349.        If you type A>ZIGZAG   (then press enter key) DOS will look for: 
  350.        ZIGZAG.COM or ZIGZAG.EXE or ZIGZAG.BAT. As we illustrated in the 
  351.        directory listing above, the first (ZIZAG.COM) is a COMMAND file 
  352.        or program which can be run to do something.  The second is an 
  353.        executable file. And, the third is a batch file (see the batch 
  354.        file tutorial). Both .COM and .EXE files can execute as 
  355.        programs. The difference between the two relates to how memory 
  356.        is allocated. COM files when loaded into memory are exact mirror 
  357.        images of their structure on disk. EXE files are usually larger 
  358.        programs which use extensive chunks of RAM memory and are not 
  359.        exact images of their disk counterpart. An arcane but interesting 
  360.        distinction. 
  361.  
  362.        A DOS command has a unique command syntax just like we humans 
  363.        have rules of grammar. A DOS command has a mandatory part and 
  364.        some DOS commands have an optional part. 
  365.  
  366.        For example, DIR C:pathname\filename.ext/w/p is the complete 
  367.        syntax for the DOS DIR command we used above, BUT only DIR is 
  368.        mandatory. We will explain pathnames and directories in a later 
  369.        tutorial. For now just realize that DOS commands have a central 
  370.        or mandatory command and additional "refinements" or options 
  371.        with little / and \ bars to refine the command. / is a slash. \ 
  372.        is called a backslash. You don't need to use the refinements, 
  373.        but they help as you grow in proficiency. 
  374.  
  375.        FILE HANDLING LIES! DOS is quite honest for the most part. When 
  376.        you ask for a directory listing of files on a disk you usually 
  377.        get it. EXCEPT for two small lies! On the main DOS disk are two 
  378.        files which cannot be seen on the directory (hidden) but are 
  379.        there: IBMBIO.COM and IBMDOS.COM. These files are the core of 
  380.        the operating system. The designers of DOS hid them for two 
  381.        reasons 1) copyright concerns 2) protection from accidental 
  382.        erasure. But the biggest problem is that these two special files 
  383.        will not copy to disks in the normal manner (see our copy 
  384.        discussion below). These two files can only be copied with the 
  385.        SYS command or DISKCOPY command (also below). Without these two 
  386.        files a disk cannot boot or startup the computer. When you copy 
  387.        a DOS disk the COPY command copies almost everything (except 
  388.        IBMBIO and IBMDOS.) The DISKCOPY command copies everything. You 
  389.        only need IBMBIO.COM and IBMDOS.COM to start the computer. 
  390.        IBMBIO.COM and IBMDOS.COM do not have to be on every disk - only 
  391.        those disks which start the computer. 
  392.  
  393.        Tip: STOP! Not a formal DOS command, but if you need to stop 
  394.        something in progress, (copying, listing) do this: If a 
  395.        directory is scrolling endlessly down the screen, hit control 
  396.        key AND the S key held together. This stops things until you 
  397.        want to continue (hit any key). To stop a DOS operation 
  398.        altogether, use control key and C key together. Easy way to 
  399.        remember: control-C means crash. control-S means stop. This will 
  400.        not always work within every program (e.g., inside lotus 1-2-3) 
  401.        but it does work within DOS. 
  402.  
  403.        ██ TYPE ██ (internal)  displays or "types" the contents of a 
  404.        file on your monitor. Use type for a glimpse into files. Only 
  405.        text files (also known as ASCII files) will read in english. 
  406.        Other files (com or exe) will show gibberish since they are in 
  407.        computer code. Hit CTRL-Z to stop (control and Z keys). Hit 
  408.        Ctrl-S (control and S key) to pause and any key to restart. 
  409.  
  410.        Example: a>type readme.1st        (sends output to screen) 
  411.  
  412.        Example: b>type readme.1st>prn    (sends output to printer) 
  413.  
  414.        ██ ? and * ██ DOS can use "wildcards" in many operations (? *). 
  415.        Simply stated, these wildcards take the place of letters and 
  416.        numbers. Use the question mark as any SINGLE character. Use the 
  417.        * as any GROUP of ANY LENGTH of characters. Think of them as 
  418.        shortcuts to get the job done! Very powerful and useful! 
  419.        Frequently used with the COPY and DEL commands which are 
  420.        discussed in a few paragraphs. 
  421.  
  422.        Example: c>dir a:*.wks 
  423.  
  424.        Means provide a directory listing of any files on the a: drive 
  425.        ending in WKS and beginning with ANY characters of ANY length 
  426.        from 1 to eight digits. Files such as MY.WKS or NUMBERS.WKS or 
  427.        NAMES.WKS would fit this description. 
  428.   
  429.        Example: b>copy ???.dat a: 
  430.  
  431.        Means copy any files to a: drive ending in DAT and having any 
  432.        characters in the filename AND ONLY filenames exactly three 
  433.        digits long. 
  434.  
  435.        The often used *.* means ANY FILE NAME and ANY extension 
  436.        regardless of length. For instance: 
  437.  
  438.        Example: c>copy *.* a:   (means copy ALL files from the existing 
  439.                                 default c: into the a: drive) 
  440.  
  441.        Example: c>copy a:*.* b:  (means copy ALL files from a: to b:) 
  442.  
  443.        Example: a>del finance.*   (delete files from the a: drive which 
  444.                                   begin with finance and have ANY file 
  445.                                   extension size or character type.) 
  446.  
  447.        ██ COPY ██ (internal) copies one or several files to a disk or 
  448.        directory. Copy can duplicate a file onto another disk or into a 
  449.        subdirectory (more on subdirectories later). Copy is the most 
  450.        flexible and powerful of the DOS commands! Use the copy command 
  451.        with the wildcards seen above for even more flexibility. 
  452.  
  453.        Example: b>copy zip.doc a:  (copy zip.doc from b: drive to a: 
  454.                                    drive.) 
  455.  
  456.        Example: a>copy c:why.me b: (copy why.com from c: drive to b: 
  457.                                    drive.) 
  458.  
  459.        Example: c>copy c:fuss.txt b:whine.txt   (copy fuss.txt from c: 
  460.                                                 drive to b: drive and 
  461.                                                 rename it whine.txt) 
  462.  
  463.        Copy and /v verifies a good transfer or copy. 
  464.  
  465.        Example:   a>copy whine.bat b:/v 
  466.  
  467.        Means copy the disk file whine.bat to the b: drive and then 
  468.        VERIFY this is a good copy. Verify is also an independent DOS 
  469.        command. 
  470.  
  471.        Copy and the + symbol COMBINES two or more files into one larger 
  472.        file. Useful for combining two wordprocessor files into one 
  473.        larger file. 
  474.  
  475.        Example: a> copy files.old+files.new files.all   
  476.                           (The NEW file = files.all) 
  477.  
  478.        Copy can send data to the printer. 
  479.  
  480.        Example: b>copy files.new prn 
  481.  
  482.        Example: b>copy files.new>prn. 
  483.  
  484.        Copy CON (copy from the console or keyboard) can prepare batch 
  485.        files and autoexec.bat files to automate many DOS operations 
  486.        (examples below). In this fashion copy can create a new file and 
  487.        act like a very simple word processor! 
  488.  
  489.        Example: a>copy con autoexec.bat  (press enter) 
  490.  
  491.          a>123                    (press enter) 
  492.  
  493.          a>^Z                     (press enter) 
  494.  
  495.        In the last line ^Z is produced by either pressing F6 (function 
  496.        key 6) or holding down control key and z key together. This file 
  497.        means (first line) create a file named autoexec.bat as typed 
  498.        from the keyboard or con (console). (Second line) execute the 
  499.        program named 123. (Final line) end of my orders from the 
  500.        keyboard - prepare the file and stash it on the disk. 
  501.  
  502.        ██ VERIFY ██ (internal) checks file copying operations to make 
  503.        sure a newly copied file is identical to its companion. It is 
  504.        usually added as a /V command at the end of a copy command, but 
  505.        also is a separate DOS command. Typing verify all by itself 
  506.        simply reports whether verify is currently on or off. 
  507.  
  508.        Example: c>verify on   (turns on verify function until you turn 
  509.                               it off) 
  510.  
  511.        Example  b>verify off  (turns off verify function until you turn 
  512.                               it on) 
  513.                                                 
  514.        ██ DATE and TIME ██ (internal) A calendar and clock exist within 
  515.        DOS. On some computers it automatically is updated and kept 
  516.        current. On other computers (without a clock card or chip 
  517.        installed) you type in the date and time on startup. If you 
  518.        don't type in the date and time manually or have an automatic 
  519.        clock chip which does this, the default values will be 1/1/80 
  520.        and 00:00:00.00 for date and time respectively. You can enter 
  521.        the date with hyphens (-) or slashes (/). Do not enter the day 
  522.        of the week (e.g., Monday) even though it may show on the 
  523.        monitor. The PC will calculate this for you automatically. A two 
  524.        digit year references dates between 1980 and 1999. In 2000 you 
  525.        must use four digits. The time setting references a 24 hour 
  526.        military time clock (e.g., 1300 hours =  1PM). Date and time 
  527.        data is important to DOS since it is attached to all files to 
  528.        keep track of when they were created so you can determine which 
  529.        file is most recent. 
  530.  
  531.        Example: b>time    
  532.  
  533.        Example: a>date 
  534.  
  535.        ██ DEL or ERASE ██ (internal) deletes files or groups of files. 
  536.        Use DEL*.* to erase all files from a disk. See our previous 
  537.        mention of wildcards (* and ?). If you make a mistake, certain 
  538.        non-DOS utilities (e.g., Nortons Utilities and PC-Tools) can un-
  539.        delete a deleted file. But DOS cannot do this! Be careful - a 
  540.        typographic mistake can delete an unintended file! Deleting old 
  541.        files is a necessary operation, though, which frees up space on 
  542.        a disk. Hard disk users may prefer to move files to a floppy to 
  543.        free up space yet still retain a backup copy of the file in case 
  544.        of need. 
  545.  
  546.        Example: a>del whine.txt 
  547.  
  548.        Example: b>del 784.wks 
  549.  
  550.        Example: a>del *.wks  (notice the use of the * wildcard we 
  551.                              mentioned earlier!) 
  552.  
  553.        Example: a>del old.*  (notice the use of the * wildcard we 
  554.                              mentioned earlier!) 
  555.  
  556.        Example: c>del ??.rxd (notice the use of the ? wildcard we 
  557.                              mentioned earlier!) 
  558.  
  559.        ██ DISKCOPY ██ (external) copies entire contents of one floppy 
  560.        to another. Some DOS versions (Ver 2.11) require you to first 
  561.        format the blank disk  while later versions (Ver 3.1 and higher) 
  562.        sense an unformatted disk and first format it then proceed with 
  563.        the diskcopy. Diskcopy is a wise idea since disks wear out after 
  564.        several hundred hours of operation. The /1 argument means copy 
  565.        to side 0 of the disk only. All information on the target disk 
  566.        will be destroyed and over-written with the new information, so 
  567.        be careful! 
  568.  
  569.        Example: a>diskcopy a: b:      (copy the contents of a: floppy 
  570.                                       to b: floppy) 
  571.  
  572.        Example: a>diskcopy a: b:/1    (copy the partial contents of a: 
  573.                                       floppy to b: floppy using single 
  574.                                       side of disk only) 
  575.  
  576.        ██ COMP and DISKCOMP ██ (external) compare two files or disks. 
  577.        Diskcomp is frequently used after diskcopy operations. These 
  578.        commands ensure identical accuracy of the copied files or disks. 
  579.  
  580.        Example: a>comp a:fuzz.txt b:thatch.txt    (compares two files) 
  581.  
  582.        Example: a>diskcomp a: b:                  (compares two entire 
  583.                                                   disks)                 
  584.        
  585.        ██ CLS ██ (internal) clears the screen and puts the cursor in 
  586.        the home (upper left) position. Useful. Try it! 
  587.  
  588.        Example: a>cls 
  589.  
  590.        ██ FORMAT ██ (external) Prepares a blank floppy to receive data. 
  591.        Think of a fresh disk as blank paper. DOS prefers graph paper 
  592.        with little boxes drawn on it to receive data. Each little box 
  593.        stores a computer word or "byte." Format erases any old files on 
  594.        a disk (be careful!) Format prepares the tracks and sectors 
  595.        which will receive the data. All disks must first be formatted 
  596.        prior to use. 
  597.  
  598.        Example: b>format a:   (format floppy in a: drive) 
  599.  
  600.        Example: c>format a:/s (format floppy in a: AND add system 
  601.                                files) 
  602.  
  603.        Example: a>format      (format the disk in the DEFAULT a: 
  604.                               drive).      
  605.  
  606.        Full command syntax is: format d:/s/1/8/b/v 
  607.  
  608.        In the above example, d: tells where the disk is. /s put the 
  609.        system files IBMDOS.COM and IBMBIO.COM on the disk. /1 formats 
  610.        one side of the disk only. /8 formats as 8 sectors for use the 
  611.        older DOS 1.1. /b formats as 8 sectors per track and leaves room 
  612.        for the DOS system files. /v puts a volume label onto the disk 
  613.        for future identification. 
  614.  
  615.        Tip:  Only new (empty) formatted disks can receive the system 
  616.        files (IBMBIO.COM and IBMDOS.COM). Once you put a few files on 
  617.        the floppy, the system files will not fit since track 0, sector 
  618.        0 have been used. Remember that the system files are designed to 
  619.        start the computer and MUST start on track 0, sector 0, However 
  620.        very few of your floppies NEED the system files: just the one or 
  621.        two which actually start the PC. 
  622.  
  623.        Tip: Danger! a>format c: wipes out your hard drive! 
  624.        Also c> del *.*  wipes out hard drive. 
  625.  
  626.        ██ REN or RENAME ██ (internal) changes name of a file to another 
  627.        new name. Destroys old name. Usually you will use this when you 
  628.        want to change on old backup file to another name so that it can 
  629.        be used by a program again. Wildcards are allowed but can cause 
  630.        trouble - be careful. If the new file name already exists, the 
  631.        ren command will give you an error message as a safety measure. 
  632.  
  633.        Example: a>ren old.txt new.txt 
  634.  
  635.        Tip: Use the copy command instead of rename if you want to KEEP 
  636.        the old file and its old name, and want another copy of that 
  637.        file with a new name. See the THIRD example given in the copy 
  638.        command. 
  639.  
  640.        ██ VER ██  Shows the DOS version number. 
  641.  
  642.        Example: a>ver 
  643.  
  644.        ██ VOL ██ Displays a volume label, if one exists on a particular 
  645.        hard or floppy disk. The label is a name you can give the disk 
  646.        when it is first formatted. It can contain names, dates or 
  647.        helpful reminders much like the title on the cover of a book. 
  648.        Some special utilities help you change the volume label AFTER 
  649.        formatting has taken place. 
  650.  
  651.        Example: c>vol 
  652.  
  653.        ██ SYS ██ (external) copies the hidden files (BIO and SYS) to 
  654.        another disk which has been already formatted. This command 
  655.        makes a disk floppy bootable to the computer - you no longer 
  656.        need DOS to start the machine. The newly made disk with the two 
  657.        hidden files will boot (start) the machine by itself. The basic 
  658.        purpose of the SYS and format/s commands are to make a disk 
  659.        self-starting or self booting. 
  660.  
  661.        The command FORMAT/S first formats a floppy then adds the hidden 
  662.        files. 
  663.  
  664.        Example: a>sys b: (used when the disk is already formatted) 
  665.  
  666.        Example: a>format b:/s (does same thing but first formats blank 
  667.                               disk) 
  668.  
  669.        Example: a>format b:/s/v (verify also used) 
  670.    
  671.        ██ CHKDSK ██ (external) checks contents of a disk for errors. 
  672.        Chkdsk/f     fixes minor file allocation table (FAT) errors. 
  673.        Chkdsk/v (v means verbose) displays all filenames as it works. 
  674.        Followed by a filename, chkdsk checks only that file. Always use 
  675.        the version of chkdsk which came with your DOS disk. Switching 
  676.        to a different version from another disk can do damage! 
  677.  
  678.        Below is a sample display produced by running chkdsk on a floppy 
  679.        disk. The first three lines of the report tell about the disk. 
  680.        The last two tell about the RAM memory inside the computer. 
  681.  
  682.                        c>chkdsk b:   produces following
  683.  
  684.                          362496 bytes total disk space
  685.                          251904 bytes in 26 user files
  686.                         110592 bytes available on disk
  687.  
  688.                            655360 bytes total memory
  689.                                234016 bytes free
  690.  
  691.        
  692.        Example: a>chkdsk b:              (check b: floppy, all files) 
  693.  
  694.        Example: c>chkdsk c:\*.*          (check for contiguity of files 
  695.                                          in root of c: drive) 
  696.  
  697.        Example: a>chkdsk b:this.doc/f/v   (check only the file this.doc 
  698.                                           on b:floppy. Give verbose report 
  699.                                           and attempt to fix any errors) 
  700.  
  701.        ██ FDISK ██ (external) prepares hard drive for data. First use 
  702.        fdisk then use format c:/s/v for second step. Some hard disks 
  703.        come shipped with fdisk already run and only need final 
  704.        formatting. Running fdisk is also known as partitioning the hard 
  705.        disk. 
  706.  
  707.        Example: a>fdisk 
  708.  
  709.        ██ LABEL ██ (external) attaches volume label or header to a 
  710.        floppy. Like stamping a book with a title. Only in DOS 3.0 and 
  711.        above. Some utilities can add this feature to DOS 2.11 and 
  712.        below. 
  713.  
  714.        Example: a>label b:expenses.com 
  715.  
  716.        ██ CTRL & PRTSC ██ (internal) aren't really DOS commands but a 
  717.        combination of two keystrokes at the same time which sends all 
  718.        displayed data to the printer until you hit the same two keys to 
  719.        turn the command off. This allows you to print directory 
  720.        listings or files of interest. Remember to turn command off when 
  721.        finished. Press CTRL-PRTSC to toggle the printer on and print 
  722.        anything which goes to the monitor screen, then press CTRL-PRTSC 
  723.        to toggle the printer off when you have all you need printed. 
  724.  
  725.        ██ SHIFT & PRTSC ██ (internal) two key combination which copies 
  726.        only the current screen to your printer. 
  727.  
  728.        DOS also uses device (equipment) names within commands. For 
  729.        example you can talk to your printer on keyboard by using the 
  730.        proper DOS name. Each name is unique. 
  731.  
  732.        ██ CON ██ Is the name for the keyboard and monitor. Below is a 
  733.        repeat of a previous example using the con device name. 
  734.  
  735.        Copy CON ("copy from the console or keyboard) can prepare batch 
  736.        files and autoexec.bat files to automate many DOS operations 
  737.        (examples below). In this fashion copy can create a new file and 
  738.        act like a very simple word processor! 
  739.  
  740.        Example: a>copy con autoexec.bat  (press enter) 
  741.   
  742.          a>123                    (press enter) 
  743.   
  744.          a>^Z                     (press enter) 
  745.  
  746.        ██ AUX: or COM1 ██ Is the first ansynchronous communication port 
  747.        which usually has a modem, serial printer or mouse connected to 
  748.        it. COM2 is the second port. PC's can have up to 4 serial ports.   
  749.  
  750.        ██ PRN  or LPT1 ██  Is the first parallel port which is usually 
  751.        used with a printer. LPT2 is the second printer. By the way, a 
  752.        PORT is an electrial socket on the back of the PC where a cable 
  753.        of some type plugs in. 
  754.  
  755.        ██ CAS1 ██ Is an antique term still available within DOS which 
  756.        refers to the early PC days when a cassette recorder was used 
  757.        for storing data rather than floppies. This is the cassette 
  758.        recorder port. 
  759.  
  760.        ██ NUL ██ Is a test device. Anything sent to nul goes nowhere. 
  761.        However it is useful in testing DOS batch programs or simply 
  762.        sending excess garbage from a screen report to nul (nowhere) 
  763.        thus uncluttering a busy screen. Odd but useful in its own 
  764.        right! 
  765.  
  766.        ████████████████████████████████████████████████████████████████ 
  767.        
  768.                 SUBDIRECTORIES - LITTLE BOXES IN THE DISK DRIVE 
  769.        
  770.        ████████████████████████████████████████████████████████████████ 
  771.  
  772.        Floppy disks have a relatively limited capacity to store files - 
  773.        limited in comparison to the seemingly expansive space on a hard 
  774.        drive. To find a necessary file name on a floppy, just use the 
  775.        DIR or directory command. However, on a hard disk things get a 
  776.        little out of hand with hundreds of files all listed on the same 
  777.        screen. In version 2.0 of DOS and above, a solution is obtained 
  778.        by adding subdirectories and pathnames to manage the location 
  779.        and organization of file storage. A path is nothing more than a 
  780.        "trail" or "direction post" which helps DOS find a particular 
  781.        file out of the hundreds which may be located on a hard drive. 
  782.  
  783.        This pathname is facilitated by the use of multiple directories 
  784.        (called subdirectories) on a single disk. In this fashion you 
  785.        sort files into groups in a specific place on the drive. By the 
  786.        way, a subdirectory is itself a small file and does occupy space 
  787.        on the disk. 
  788.  
  789.        You could compare a hard or floppy disk to a department store. 
  790.        The store might sell toys, books and clothes.  Similar items go 
  791.        in the same department or area. 
  792.  
  793.        A disk also has the capacity for many separate areas in which to 
  794.        place files.  DOS refers to these with a main central directory 
  795.        (root directory) and subdirectories branching below it. You can 
  796.        create a subdirectory named TEXT which contains all your word 
  797.        processing documents. Computer utilities could be in a 
  798.        subdirectory called UTIL, and so on.           
  799.  
  800.        In diagramatic form this might be seen in a simple example as: 
  801.  
  802.  
  803.             ROOT (CENTRAL) DIRECTORY (contains startup files)
  804.                                 |
  805.                                 |
  806.      ----------------------------------------------------------
  807.      |                           |                            |
  808.      |                           |                            |
  809.   DATABASE SUBDIRECTORY     SPREADSHEET SUBDIRECTORY     GAMES SUBDIRECTORY
  810.      |                      |         |                       |
  811.      |                      |         |                       |
  812.   data files        business files   PERSONAL             games files
  813.                                        |
  814.                                        |
  815.                                    ----------
  816.                                    |        |
  817.                                    |        |
  818.                            Earnings files   Tax files
  819.  
  820.        On the screen, a listing of any subdirectory might show the 
  821.        first two entries mysteriously named . and .. (single dot and 
  822.        double dot). 
  823.  
  824.        The first dot is a name for the subdirectory itself. The double 
  825.        dot is a name for the parent (higher) directory one level up. 
  826.        Anytime that a subdirectory can be referred to, one can use . or 
  827.        ..  For example, if you want to copy all of a diskette, you 
  828.        could use copy A:. (A: single dot) instead of copy A:*.* or 
  829.        A:\*.* 
  830.  
  831.        Be careful to use short pathnames, especially in the DOS search 
  832.        PATH. A long path name (example: \this\that\another\yik\yak) 
  833.        slows down DOS searches and is a pain to type out. When DOS 
  834.        first starts or boots up, you always begin in the root 
  835.        directory. Notice that pathnames use the backslash (\) as their 
  836.        main "roadpost." 
  837.        
  838.        The correct name of a file always includes its path. Thus 
  839.        while we might talk about a file named PCL.EXE its REAL NAME 
  840.        if it were in a subdirectory area of a hard disk might be 
  841.        \this\that\thing\place\PCL.EXE. Most hard drive users include 
  842.        a PATH command within their autoexec.bat file to allow DOS to 
  843.        find the location of all the files. In this way you DON'T have 
  844.        to change directories manually - unless you want to - for the 
  845.        file to execute. DOS will simply consult the PATH established 
  846.        when the computer started and read in the autoexec.bat to find 
  847.        all files regardless of subdirectory location. 
  848.  
  849.        The DOS commands MD, RD, and CD allow you to make, remove, and 
  850.        change among subdirectories. They are of marginal use on a 
  851.        floppy but essential use on a hard drive which may have hundreds 
  852.        of (hard to locate) files.  
  853.  
  854.        Frequently the main (root) directory is where startup files are 
  855.        stored. The mark of a good main or root directory is that a DIR 
  856.        listing of the root should fill only ONE screen and not scroll 
  857.        down with many screens extraneous files. 
  858.        
  859.        ██ MD or MKDIR ██ (internal) makes a subdirectory and assigns it 
  860.        a name or 
  861.  
  862.        Example: a>md\data 
  863.  
  864.        Example: c>md c:\data\files 
  865.  
  866.        ██ RD or RMDIR ██ (internal) removes an empty subdirectory (it 
  867.        cannot remove a subdirectory already loaded with files as a 
  868.        safety measure - use the DEL command to first clear a 
  869.        subdirectory.) The root (main) directory cannot be removed. 
  870.  
  871.        Example: b>rd\letters\financial  (removes financial subdirectory 
  872.                                         below letters subdirectory and 
  873.                                         root directory) 
  874.  
  875.        ██ CD or CHDIR ██ (internal) changes the current (active) 
  876.        subdirectory or directory. CD\ brings you to the root (main 
  877.        directory) no matter where you are. 
  878.  
  879.        Example: a>cd\             (change to the root or uppermost 
  880.                                   directory)                  
  881.  
  882.        Example: c>cd\data         (change to subdirectory named data 
  883.                                   below the root) 
  884.  
  885.        Example: b>cd\data\financial 
  886.  
  887.        ████████████████████████████████████████████████████████████████ 
  888.  
  889.            TURNING ON THE PC - THE ELEGANT BALLET OF DOS TECHNOLOGY 
  890.        
  891.        ████████████████████████████████████████████████████████████████ 
  892.  
  893.        The following description is an optional tutorial but may
  894.        be interesting for those curious about the starting sequence
  895.        when a computer is first turned on and what the role of DOS is 
  896.        in this rather "elegant electronic ballet."
  897.  
  898.        The command processor mentioned earlier (i.e., COMMAND.COM) is 
  899.        also a file which resides on the disk but once it is read into 
  900.        the RAM chip memory of the computer it stays or resides there 
  901.        until the machine is turned off. Sometimes you may even need to 
  902.        load a second copy of COMMAND.COM and at other times, some 
  903.        application programs and games provide their own command 
  904.        processor. Basically COMMAND.COM watches for keystrokes from 
  905.        your keyboard and tries to execute commands and actions based on 
  906.        what it finds. That is why it is called a COMMAND PROCESSOR. 
  907.  
  908.        The input/output system consists of two system files (which live 
  909.        on the DOS disk) plus a ROM (read only memory) chip which also 
  910.        contains software instructions wired directly into the circuits 
  911.        of your computer. The two system files which are on the DOS disk 
  912.        are normally hidden and not available for changing. The most 
  913.        elemental and necessary part of the input/output system is 
  914.        called the BIOS or basic input/output system. The BIOS consists 
  915.        of the ROM chip on the computer's main circuit board we 
  916.        mentioned earlier plus one of the hidden files on the DOS disk 
  917.        called IBMBIO.COM (or IO.SYS). The other hidden file on the DOS 
  918.        disk, IBMDOS.COM (or MSDOS.SYS), is the main file handling 
  919.        system for the computer.  IBMDOS.COM hides inside it a portion 
  920.        of software for disk based files and a portion for non-disk 
  921.        peripherals.  The two files (IBMDOS.COM and IBMBIO.COM) are 
  922.        necessary because non-disk peripherals require data as strings 
  923.        of characters (one after another in a long line) while disks 
  924.        move their files about in large data groups known as blocks. 
  925.  
  926.        Let's jump back to COMMAND.COM which provides three services for 
  927.        the computer: it handles critical errors and problems. If your 
  928.        printer is not turned on at the right time or a disk drive door 
  929.        is open, COMMAND.COM finds out and attempts to report a message 
  930.        or suggest a remedy. It also handles critical interrupts which 
  931.        is a technical way of saying it takes care of demands and 
  932.        priorities imposed by the differing parts of the hardware. If 
  933.        you hit the Ctrl-Break key combination to stop a DOS operation, 
  934.        this is a critical interrupt which COMMAND.COM must deal with. 
  935.        Finally it performs end of program services which are routine 
  936.        chores like making more RAM memory available when a program 
  937.        finishes its job or reloading parts of itself when needed. In 
  938.        addition it also places the familiar prompt C> or A> on the 
  939.        screen and listens for commands you might type. Essentially, 
  940.        COMMAND.COM instructs the rest of the DOS series of programs 
  941.        what to do.             
  942.  
  943.        When you first turn on the switch to start the computer in the 
  944.        morning, the machine goes through a process called "booting." 
  945.        This derives from the arcane but descriptive process which 
  946.        refers to how the machine literally picks itself up by the 
  947.        "bootstraps." In the first stage of "booting up," the machine 
  948.        begins by testing its memory RAM chips and other components in a 
  949.        power on self test (POST). After this, the left or top A: floppy 
  950.        drive spins and if no disk is available the hard drive light 
  951.        flickers as the machine searches for further clues about 
  952.        starting itself. Initially the ROM chip BIOS wired inside the 
  953.        machine loads track 0, sector 0 of the disk. 
  954.  
  955.        This disk sector contains a very small program (boot loader) 
  956.        which reads the rest of the input/output system stored on the 
  957.        disk. Next the boot loader reads the input/output system 
  958.        (IBMBIO.COM and IBMDOS.COM) into the system. IBMBIO.COM 
  959.        initializes the hardware of the machine and runs a small file 
  960.        named CONFIG.SYS (if available) and finally moves IBMDOS.COM 
  961.        into its normal location in RAM memory. Finally, IBMDOS.COM 
  962.        loads COMMAND.COM and turns control over to it. COMMAND.COM runs 
  963.        the AUTOEXEC.BAT startup file (if found) and finally control is 
  964.        given to the keyboard and you. It is a long process with each 
  965.        step depending on the previous! An elegant ballet, fascinatingly 
  966.        complex, but necessary for the PC to function. 
  967.  
  968.        Why not wire this permanently into the machine on a ROM (read 
  969.        only memory) chip? Some machines do, but the main advantage of 
  970.        having this information stored on a disk is that it can be 
  971.        updated and revised easily via a change of a floppy disk. The 
  972.        machine can revise its operating system quickly by simply using 
  973.        a different or later version of DOS (or even an operating system 
  974.        other than DOS such as UNIX or other operating systems.) This is 
  975.        what gives the PC such flexibility to change and upgrade to a 
  976.        newer operating system without the expense of tearing down or 
  977.        even replacing the machine. You simply change the floppy disk 
  978.        and you have a new way of doing business! Simplicity, elegance 
  979.        and ease of changing software is what this means for the 
  980.        computer user. 
  981.  
  982.  
  983.