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

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