home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / genapps / hp22dc.arj / USRGUIDE / MANGFILE.TXT < prev    next >
Text File  |  1991-05-16  |  38KB  |  810 lines

  1.  
  2.  
  3.  
  4.  
  5.     ________________________________________________________________________
  6.                                           Chapter 4: Managing Files   55
  7.     ________________________________________________________________________
  8.  
  9.  
  10.     CHAPTER 4:  MANAGING FILES
  11.  
  12.     Selecting the Home pad's Manage files button takes you to a pad called
  13.     the DOS Shell, shown here.
  14.  
  15.  ┌───────────────────────────────────────────────────────────────────────┐
  16.  │                                                                       │
  17.  │ **** The Printed Documentation has a picture or screen shot here **** │
  18.  │                                                                       │
  19.  └───────────────────────────────────────────────────────────────────────┘
  20.     
  21.  
  22.     The DOS Shell is an especially powerful pad that makes it easy for you
  23.     to perform a wide range of file-management tasks without having to exit
  24.     to DOS and type in complicated commands.
  25.  
  26.     At first glance, though, the DOS Shell looks pretty formidable! The
  27.     screen seems chock-full of information, and you may be wondering just
  28.     how "easy" it's going to be to operate this pad. Actually, you'll find
  29.     it surprisingly simple once you understand how the DOS Shell works.
  30.  
  31.  
  32.  
  33.     ________________________________________________________________________
  34.                                           Chapter 4: Managing Files   56
  35.     ________________________________________________________________________
  36.  
  37.  
  38.     In addition to such standard HyperPAD screen elements as the menu bar,
  39.     the title bar, the command line, and the message line or status bar, you
  40.     also see two main components when you look at the DOS Shell screen:
  41.  
  42.         0  A group of three list boxes (titled Files, Directories, and
  43.            Drives) in the middle of the screen.
  44.  
  45.         0  A portion of the screen just above the list boxes (called the
  46.            status area) that displays key information about the files shown
  47.            in the Files list box.
  48.  
  49.     Of these elements, the Files list box is really the heart of the DOS
  50.     Shell, because you must get your files displayed in the Files list
  51.     before you can work with them.
  52.  
  53.     The first section of this chapter, "Displaying Files," shows you how to
  54.     make the file(s) you're interested in working with appear in the Files
  55.     list box. The second section of the chapter, "Working with Files,"
  56.     explains what you can do with those files once you have them displayed
  57.     there. In the last section of the chapter, "Using the Tree View," you'll
  58.     learn how the tree view, a tool accessible from the DOS Shell, can be
  59.     used to change the structure of your directories.
  60.  
  61.  
  62.     DISPLAYING FILES
  63.  
  64.     The DOS Shell offers you a number of ways to display the files in each
  65.     of your directories. It also offers you a number of ways to zero in on
  66.     particular files by displaying subsets of your files and by sorting your
  67.     files in various ways. In this section of the chapter, you'll learn how
  68.     to:
  69.  
  70.         0  Change the directory whose files are displayed in the Files list
  71.            box.
  72.  
  73.         0  Create separate DOS Shell pages to display the contents of the
  74.            directories you work with most often.
  75.  
  76.         0  View specified subsets of the files in a particular directory.
  77.  
  78.         0  Sort the files displayed in the Files list box according to
  79.            specified criteria.
  80.  
  81.         0  Find a particular file and view the contents of the directory
  82.            containing that file.
  83.  
  84.         0  Update the information in the DOS Shell and tree view to reflect
  85.            any changes you've made to your drives, directories, and files
  86.            while outside of HyperPAD.
  87.  
  88.  
  89.  
  90.     ________________________________________________________________________
  91.                                           Chapter 4: Managing Files   57
  92.     ________________________________________________________________________
  93.  
  94.  
  95.     The preceding list reflects the order in which the topics in this
  96.     section are presented. We'll start with the most basic operation
  97.     (displaying all the files in a specified directory) and then progress to
  98.     more sophisticated operations.
  99.  
  100.  
  101.     DISPLAYING THE CONTENTS OF A DIRECTORY
  102.  
  103.     When you first go to the DOS Shell, the following information may appear
  104.     in the three list boxes:
  105.  
  106.         0  Files:   A list of files (including the number of bytes in each
  107.            file and the date and time that the file was created or last
  108.            modified)
  109.  
  110.         0  Directories:   A list of subdirectories
  111.  
  112.         0  Drives:   A list of one or more drives
  113.  
  114.     The location of the files and subdirectories that you're viewing is
  115.     displayed in the status area after "Directory."
  116.  
  117.     There are two ways to view the files and subdirectories in a different
  118.     directory. The first is to use the DOS Shell's Drives and Directories
  119.     list boxes, and the second is to use the tree view. In the following
  120.     subsections, we'll take a look at each of these methods.
  121.  
  122.  
  123.     SELECTING A DIRECTORY WITH THE DOS SHELL
  124.  
  125.     Sometimes you may want to work with files that are on a drive other than
  126.     the one specified after "Directory" in the status area.
  127.  
  128.  
  129.     To change the drive:
  130.  
  131.     1.  TAB to highlight the Drives list box.
  132.  
  133.     2.  Use the up and down arrow keys to highlight the drive that you want
  134.     to view.
  135.  
  136.     3.  Press ENTER.
  137.  
  138.     You can also change the drive by pointing to the desired drive with the
  139.     mouse and double-clicking the left mouse button. The "Directory" portion
  140.     of the status area is automatically updated to show the new directory
  141.     for the drive you just picked.
  142.  
  143.     If the files that you want to work with are located on the same drive
  144.     but in a different directory, select the desired directory from the
  145.     Directories list box, using the procedure described above for changing
  146.     the drive.
  147.  
  148.  
  149.  
  150.     ________________________________________________________________________
  151.                                           Chapter 4: Managing Files   58
  152.     ________________________________________________________________________
  153.  
  154.  
  155.     To view the contents of the parent directory, just select the ". ."
  156.     choice from the Directories list box. This simply moves you up one level
  157.     in the directory hierarchy.
  158.  
  159.     As you use the Directories list box to move around between the parent
  160.     drive and its directories, you'll see that the contents of the Files
  161.     list box keep changing accordingly and that the information following
  162.     "Directory" and "Number of Files" in the status area is also
  163.     automatically updated.
  164.  
  165.     With a little practice, you'll soon become quite adept at using the
  166.     Drives and Directories list boxes to display the contents of different
  167.     directories. However, you may find it a bit cumbersome to use the
  168.     Directories list box if you have to move between many subdirectories--
  169.     e.g., between C:\123\SHEETS\BACKUP and C:\WORD\DOC\PROJ1\BACKUP.
  170.  
  171.     Whenever complex DOS Shell navigation would be required to display a
  172.     particular group of files or you can't immediately recall where the
  173.     desired files are located, the tree view (discussed next) is an
  174.     invaluable tool.
  175.  
  176.  
  177.     SELECTING A DIRECTORY WITH THE TREE VIEW
  178.  
  179.     To display the tree view, shown here, select the Tree command (ALT+2)
  180.     from the DOS Shell's command line.
  181.  
  182.  ┌───────────────────────────────────────────────────────────────────────┐
  183.  │                                                                       │
  184.  │ **** The Printed Documentation has a picture or screen shot here **** │
  185.  │                                                                       │
  186.  └───────────────────────────────────────────────────────────────────────┘
  187.     
  188.  
  189.  
  190.  
  191.     ________________________________________________________________________
  192.                                           Chapter 4: Managing Files   59
  193.     ________________________________________________________________________
  194.  
  195.  
  196.     The tree view illustrates the structure of the directories on a
  197.     specified drive. Later in this chapter, we'll discuss the tree view more
  198.     fully, but for now, you'll use the tree view as a way to quickly access
  199.     the directory containing the files you want to work with so those files
  200.     can be displayed in the DOS Shell's Files list box.
  201.  
  202.     When you call up the tree view, it shows the structure of the drive
  203.     whose contents you're currently viewing on the DOS Shell. To see a tree
  204.     view of a different drive, use the command line's View Tree command
  205.     (ALT+1), which lets you pick from a list of drives. Once you have a tree
  206.     view of the drive containing the files you want to work with, use the
  207.     keyboard or the mouse to scroll through the tree view list box until you
  208.     spot the location of the desired files.
  209.  
  210.     To select the target directory, either highlight it with the keyboard
  211.     and press ENTER or point to it with the mouse and double-click the left
  212.     mouse button. As soon as you select your target, the DOS Shell
  213.     automatically reappears, showing the contents of the selected directory
  214.     in the Files list box.
  215.  
  216.  
  217.     CREATING DOS SHELL PAGES
  218.  
  219.     Since there are probably a number of directories whose files you work
  220.     with often, HyperPAD lets you make separate DOS Shell pages to display
  221.     the contents of those directories. By doing so, you can save yourself
  222.     the trouble of having to access the drive and directory each time you
  223.     want to work with that group of files. To create DOS Shell pages, just
  224.     follow the instructions below.
  225.  
  226.  
  227.     To create DOS Shell pages:
  228.  
  229.     1.  Use the DOS Shell's Drives and Directories list boxes or the tree
  230.     view to display the desired files in the Files list box.
  231.  
  232.     2.  Select Misc. (ALT+7) from the command line.
  233.  
  234.     3.  When the pop-up showing miscellaneous commands appears, select New
  235.     Page either by highlighting it with the keyboard and pressing ENTER or
  236.     by pointing to it with the mouse and clicking the left mouse button.
  237.  
  238.     A dialog box then appears containing a text box that's already filled in
  239.     with the path of the directory whose files are now shown in the Files
  240.     list box. Just press ENTER or select <<Ok>> to make a separate DOS Shell
  241.     page for the currently displayed information.
  242.  
  243.  
  244.  
  245.     ________________________________________________________________________
  246.                                           Chapter 4: Managing Files   60
  247.     ________________________________________________________________________
  248.  
  249.  
  250.     Once you've created a few DOS Shell pages, you can navigate through them
  251.     either by pressing the PGUP and PGDN keys on the keyboard or by
  252.     selecting the on-screen paging buttons. The page number of the current
  253.     DOS Shell page appears at the center of the title bar.
  254.  
  255.     If you want to remove DOS Shell pages that you no longer need, use the
  256.     Delete Page command from the Edit menu. (This command only eliminates
  257.     unwanted pages from the DOS Shell; it has no effect on the contents of
  258.     your hard disk.) Once you remove a page from the DOS Shell, the
  259.     remaining pages are renumbered accordingly.
  260.  
  261.  
  262.     CHANGING THE FILESPEC
  263.  
  264.     Whether you realized it or not, up until now we've been telling you how
  265.     to display all the files in a particular directory. (HyperPAD's default
  266.     setting is to display all files.) But if you only want to view a portion
  267.     of the files in a particular directory, select the FileSpec command
  268.     (ALT+3) on the DOS Shell's command line.
  269.  
  270.     The FileSpec popup that appears can be used to change the file
  271.     specification from All Files to a particular subset of files (and vice
  272.     versa) in the directory whose contents you're viewing. The file
  273.     specifications you can select from are shown in the accompanying table.
  274.  
  275.     FileSpec:       Files displayed:
  276.     ------------------------------------------------------------------------
  277.     All Files       Displays all the files in the directory you're viewing.
  278.  
  279.     Programs        Displays only the program files in that directory.
  280.  
  281.     Mask            Displays only the files in that directory with a certain
  282.                     extension.
  283.  
  284.     Search          Displays only the files containing specified text.
  285.  
  286.  
  287.     The currently selected file specification appears after "Viewing" in the
  288.     status area, so you can always tell at a glance whether the Files list
  289.     box shows all files or a given subset of files. In the following
  290.     subsections, we'll take a closer look at the four FileSpec options.
  291.  
  292.  
  293.     PROGRAMS
  294.  
  295.     Selecting Programs from the FileSpec pop-up makes the DOS Shell's Files
  296.     list display only the program files in the directory whose contents
  297.     you're currently viewing. (These are files having the file extension
  298.     COM, EXE, or BAT.)
  299.  
  300.  
  301.  
  302.     ________________________________________________________________________
  303.                                           Chapter 4: Managing Files   61
  304.     ________________________________________________________________________
  305.  
  306.  
  307.     If you then use the DOS Shell to view the contents of a different
  308.     directory, HyperPAD continues to display only the program files in the
  309.     newly selected directory until you change the file specification (for
  310.     example, by selecting All Files from the FileSpec pop-up).
  311.  
  312.  
  313.     MASK:
  314.  
  315.     Selecting Mask from the FileSpec pop-up produces a dialog box asking you
  316.     for the mask of the files you want displayed.
  317.  
  318.     To display only the files in the currently viewed directory that
  319.     have a particular extension, type an asterisk (*), a period (.), and the
  320.     extension, like "*.DOC."  When you press ENTER or select <<Ok>>, the
  321.     files with the specified extension are displayed in the DOS Shell's
  322.     Files list box. If, for example, you were in the HPAD2 directory and
  323.     wanted to view the files in that directory with the extension PAD, you
  324.     would type *.PAD in the dialog box's New mask text box. If you wanted to
  325.     view only the files that start with the letter C and have the extension
  326.     PAD, you would type C*.PAD.
  327.  
  328.     Once you use the FileSpec command to specify an extension and then use
  329.     the DOS Shell to view the contents of a different directory, HyperPAD
  330.     continues to display only the files (if any) with that extension in the
  331.     newly selected directory until you change the file specification (for
  332.     example, by selecting All Files from the FileSpec pop-up).
  333.  
  334.  
  335.  
  336.     ________________________________________________________________________
  337.                                           Chapter 4: Managing Files   62
  338.     ________________________________________________________________________
  339.  
  340.  
  341.     SEARCH
  342.  
  343.     Selecting Search from the FileSpec pop-up produces the Search dialog
  344.     box, shown here. You can use this dialog box to tell HyperPAD to search
  345.     the contents of the files in the currently viewed directory for the word
  346.     or string that you type into the Search for text box.
  347.  
  348.  ┌───────────────────────────────────────────────────────────────────────┐
  349.  │                                                                       │
  350.  │ **** The Printed Documentation has a picture or screen shot here **** │
  351.  │                                                                       │
  352.  └───────────────────────────────────────────────────────────────────────┘
  353.     
  354.  
  355.     Selecting the Case sensitive option tells HyperPAD to identify only
  356.     files that contain the specified text exactly as you've typed it. If,
  357.     for example, you type Bill in the Search for text box and select the
  358.     Case sensitive option, HyperPAD lists the files in the currently viewed
  359.     directory that contain the word "Bill" (i.e., capital "B," lowercase
  360.     "ill," just the way you typed it). But if you don't select the Case
  361.     sensitive option, HyperPAD lists all the files that contain the text
  362.     string "bill"--including not only "Bill" but also such instances as
  363.     "Brightbill" and "billing."
  364.  
  365.     Once you've typed in the text string and selected the Case sensitive
  366.     option (if desired), select the Start Search button to initiate the
  367.     search. HyperPAD uses the Found list box to display the files from the
  368.     Search list in which it finds the specified text string.
  369.  
  370.     When HyperPAD has finished its search, select the Search dialog box's
  371.     Set View button. The DOS Shell reappears, with the list of files
  372.     containing the specified text string now displayed in the Files list
  373.     box.
  374.  
  375.  
  376.  
  377.     ________________________________________________________________________
  378.                                           Chapter 4: Managing Files   63
  379.     ________________________________________________________________________
  380.  
  381.  
  382.     ALL FILES
  383.  
  384.     When you're through viewing any of the file subsets, you can display all
  385.     the files in the directory again by selecting the command line's
  386.     FileSpec command (ALT+3) and then selecting All Files from the FileSpec
  387.     pop-up.
  388.  
  389.  
  390.     SORTING FILES
  391.  
  392.     HyperPAD offers a variety of options for sorting the files currently
  393.     displayed in the DOS Shell's Files list box. The default is for files to
  394.     be listed by name in ascending alphabetical order. However, you can also
  395.     sort files by extension, size (in bytes), and the date and time that the
  396.     files were created or last modified.
  397.  
  398.     To sort files, select the Sort command (ALT+1) from the command line.
  399.     A popup appears from which you can select Name, Extension, Size, and
  400.     DateTime. Once you select any one of these options, a second pop-up
  401.     automatically appears showing the options Ascending and Descending.
  402.     (This means you really have eight sort options because you could sort
  403.     according to any of the four options in either ascending or descending
  404.     order.)
  405.  
  406.     Once you've selected an option and specified ascending or descending
  407.     order, the files in the Files list box are rearranged accordingly, and
  408.     your sort option is recorded after "Sorted by" in the status area. If
  409.     you selected descending order, the sort option in the status area is
  410.     followed by a downward-pointing arrow.
  411.  
  412.     Once you select a sort option with the Sort command, if you then use the
  413.     DOS Shell to view the contents of a different directory, HyperPAD
  414.     continues to display the files in the newly selected directory according
  415.     to the current sort option until you use the Sort command again to
  416.     select another option (for example, HyperPAD's default setting--Name and
  417.     Ascending).
  418.  
  419.  
  420.  
  421.     ________________________________________________________________________
  422.                                           Chapter 4: Managing Files   64
  423.     ________________________________________________________________________
  424.  
  425.  
  426.     FINDING FILES
  427.  
  428.     Suppose you're trying to locate a file but you don't know which
  429.     directory it's in? Worse yet, suppose you don't even remember the file's
  430.     name?!
  431.  
  432.     To resolve this dilemma, select the Misc. command (ALT+7) from the DOS
  433.     Shell's command line, and when the pop-up of miscellaneous commands
  434.     appears, select Find File. The DOS Find File dialog box, shown here,
  435.     appears.
  436.  
  437.  ┌───────────────────────────────────────────────────────────────────────┐
  438.  │                                                                       │
  439.  │ **** The Printed Documentation has a picture or screen shot here **** │
  440.  │                                                                       │
  441.  └───────────────────────────────────────────────────────────────────────┘
  442.     
  443.  
  444.     To fill out this dialog box, type into the Find what text box the first
  445.     letter of the filename (if you happen to know it), an asterisk (*), a
  446.     period (.), and the extension of the desired file, like "*.BAT." Then
  447.     use the Drive to search text box to specify the drive you think the file
  448.     is located on. (Select the Pick button to choose a drive other than the
  449.     one already shown.)
  450.  
  451.     Up to this point, the preceding explanation probably sounds a lot like
  452.     using the Mask command on the FileSpec pop-up. However, the Mask command
  453.     searches only the files listed for the currently viewed directory,
  454.     whereas the Find File command performs a global search of all the
  455.     directories on a particular drive.
  456.  
  457.     Once HyperPAD displays the results of its search in the DOS Find File
  458.     dialog box's Found list box, you can use the keyboard or the mouse to
  459.  
  460.  
  461.  
  462.     ________________________________________________________________________
  463.                                           Chapter 4: Managing Files   65
  464.     ________________________________________________________________________
  465.  
  466.  
  467.     select one of the files. As soon as you select a file, the DOS Shell
  468.     reappears and displays the contents of the directory containing that
  469.     file.
  470.  
  471.  
  472.     REREADING DIRECTORIES AND TREES
  473.  
  474.     In order to keep your DOS Shell and tree view current, you should give
  475.     HyperPAD a chance to update its information whenever you know that
  476.     you've made changes that affect your drives, directories, and files. (If
  477.     you happen to notice discrepancies between the information displayed on
  478.     the DOS Shell or the tree view and the actual status of your drives,
  479.     directories, and files, you've probably failed to advise HyperPAD of
  480.     recent changes!)
  481.  
  482.     If you've made changes affecting the contents of a directory, start by
  483.     displaying that directory on the DOS Shell. Then select the Misc.
  484.     command (ALT+7), and when the pop-up of miscellaneous commands appears,
  485.     select Reread Directory. HyperPAD rereads the currently viewed directory
  486.     and automatically displays an updated version of it.
  487.  
  488.     If you've made changes affecting the structure of a directory, start by
  489.     selecting Tree (ALT+2) from the DOS Shell's command line to bring up the
  490.     tree view. Then, if necessary, use the View Tree command (ALT+1) on the
  491.     DOS Tree's command line to select a drive other than the one whose tree
  492.     view is displayed. Once you have a tree view of the drive containing the
  493.     directory where you made the changes, select Reread Tree (ALT+2) from
  494.     the command line. HyperPAD rereads the tree for the selected drive and
  495.     automatically displays an updated version of it.
  496.  
  497.  
  498.     Now that you've seen how to display selected files in the DOS Shell's
  499.     Files list box so you can work with them, let's take a look in the
  500.     following section at some of the operations you can perform on those
  501.     files.
  502.  
  503.  
  504.  
  505.     ________________________________________________________________________
  506.                                           Chapter 4: Managing Files   66
  507.     ________________________________________________________________________
  508.  
  509.  
  510.     WORKING WITH FILES
  511.  
  512.     Once you have the files you want to work with displayed in the DOS
  513.     Shell's Files list box, you can use that list to run a program; browse
  514.     the contents of files; and copy, move, and delete files. The subsections
  515.     below explain how.
  516.  
  517.     If in the course of working with your files, you need to carry out a DOS
  518.     command, there's a handy shortcut you should be aware of. Simply select
  519.     Misc. (ALT+7) from the DOS Shell's command line and then select DOS
  520.     Command from the pop-up of miscellaneous commands that appears. This
  521.     takes you directly to the DOS Commands Index page, just as if you had
  522.     selected the Home pad's Run a DOS command button.
  523.  
  524.  
  525.     RUNNING A PROGRAM
  526.  
  527.     In this subsection, you'll learn how to use HyperPAD's DOS Shell to
  528.     launch a program.
  529.  
  530.  
  531.     To launch a program from the DOS Shell:
  532.  
  533.     1.  Get the program file displayed in the Files list box.
  534.  
  535.     2.  Select the program with the keyboard or the mouse.
  536.  
  537.     HyperPAD launches the program but does not ask you whether you'd like to
  538.     load a work file.
  539.  
  540.     When you exit from the program, HyperPAD returns you to the DOS Shell.
  541.  
  542.     Another way to launch a program from the DOS Shell is to get the work
  543.     file that you want to load displayed in the Files list box. When you
  544.     select that file with the keyboard or the mouse, HyperPAD automatically
  545.     searches for the program that uses that type of file and (assuming it
  546.     finds the program) launches the program with the selected work file.
  547.     When you exit from the program, HyperPAD returns you to the DOS Shell.
  548.  
  549.  
  550.     BROWSING FILES
  551.  
  552.     Suppose you have a group of files displayed in the DOS Shell's Files
  553.     list box but aren't quite sure which of the files contains certain
  554.     material that you want to work with. You can view the contents of a file
  555.     by highlighting the file in the Files list box and then selecting the
  556.     Browse command (ALT+8) from the DOS Shell's command line. A dialog box
  557.     appears with the name of the highlighted file, but if you want to browse
  558.     a different file, you can type another choice in the text box. Once the
  559.     name of the file you want to browse is shown in the text box, press
  560.  
  561.  
  562.  
  563.     ________________________________________________________________________
  564.                                           Chapter 4: Managing Files   67
  565.     ________________________________________________________________________
  566.  
  567.  
  568.     ENTER to call up the View File dialog box, illustrated here, which
  569.     displays the raw contents of the file.
  570.  
  571.  ┌───────────────────────────────────────────────────────────────────────┐
  572.  │                                                                       │
  573.  │ **** The Printed Documentation has a picture or screen shot here **** │
  574.  │                                                                       │
  575.  └───────────────────────────────────────────────────────────────────────┘
  576.     
  577.  
  578.     Some files contain readable text (e.g., HyperPAD's README.DOC). The
  579.     contents of other files consist of both readable text and other data,
  580.     which may look like strings of meaningless characters. Some files, in
  581.     fact, contain no readable text at all.
  582.  
  583.     When you browse the contents of a file (even a file whose raw contents
  584.     aren't deliberately made to be readable, such as the one shown here),
  585.     you can usually pick out enough readable text strings to determine
  586.     what's in the file. In short, the Browse command lets you take a quick
  587.     peek at a selected file to see whether it contains the material you want
  588.     to work with.
  589.  
  590.     If you'd like to browse the contents of more than one file from the DOS
  591.     Shell's Files list box, first mark the files (by highlighting each file
  592.     with the keyboard and then pressing SPACE or by pointing to each file
  593.     with the mouse and clicking the right mouse button) and then select
  594.     Browse (ALT+8) from the command line. The View File dialog box
  595.     immediately appears. When you're finished browsing the contents of the
  596.     first marked file, you can select the Next button below the scroll box
  597.     in the View File dialog box to display the contents of the next marked
  598.     file without having to return to the DOS Shell and make another
  599.     selection.
  600.  
  601.  
  602.  
  603.     ________________________________________________________________________
  604.                                           Chapter 4: Managing Files   68
  605.     ________________________________________________________________________
  606.  
  607.  
  608.     MANIPULATING FILES
  609.  
  610.     As shown in the accompanying table, three of the commands on the DOS
  611.     Shell's command line can be used to manipulate the files that appear in
  612.     the Files list box.
  613.  
  614.     Command:   Result:
  615.     -----------------------------------------------------------------------
  616.     Copy       Places a copy of the file in another location on you system
  617.                while leaving the original file in its directory.
  618.  
  619.     Move       Takes the file off the directory where it now appears and
  620.                places it in another location on your system.
  621.  
  622.     Delete     Removes the file from your system entirely.
  623.  
  624.     In this subsection, you'll learn how to perform each of these
  625.     operations.
  626.  
  627.  
  628.     COPYING AND MOVING FILES
  629.  
  630.     The procedures for copying and moving files are very similar. First,
  631.     display the files you want to work with in the DOS Shell's Files list
  632.     box and use the keyboard or the mouse to mark the files you want to copy
  633.     or move.
  634.  
  635.     As you mark files, notice how the number of files marked and the total
  636.     number of bytes they contain are recorded after "Marked files" and
  637.     "Bytes marked" in the status area. This information can be useful if
  638.     you're trying either to free up a certain amount of space on a drive or
  639.     to make sure the marked files will fit on another drive. (We'll explain
  640.     below how to tell whether the marked files will fit on your target
  641.     drive.)
  642.  
  643.  
  644.  
  645.     ________________________________________________________________________
  646.                                           Chapter 4: Managing Files   69
  647.     ________________________________________________________________________
  648.  
  649.  
  650.     Once you've marked the files you want to work with, select Copy (ALT+4)
  651.     or Move (ALT+5) from the command line. If you're copying files, the Copy
  652.     dialog box, shown here, appears; if you're moving files, a nearly
  653.     identical Move dialog box appears. In either case, the files you just
  654.     marked appear in the scroll box, and the number of marked files and
  655.     their source are recorded immediately above the scroll box.
  656.  
  657.  ┌───────────────────────────────────────────────────────────────────────┐
  658.  │                                                                       │
  659.  │ **** The Printed Documentation has a picture or screen shot here **** │
  660.  │                                                                       │
  661.  └───────────────────────────────────────────────────────────────────────┘
  662.     
  663.  
  664.     To use the Copy or Move dialog boxes, type the desired destination for
  665.     the files in the Copy to or Move to text boxes. If you'd prefer to fill
  666.     in the Copy to or Move to text boxes automatically by selecting the
  667.     target destination from a tree view, just use the Pick button. The
  668.     amount of free space on the target drive is shown after "Bytes free" to
  669.     the right of the tree view, so you can determine whether the marked
  670.     files will fit there.
  671.  
  672.     Select the Confirm overwriting option on the Copy or Move dialog box if
  673.     you want HyperPAD to replace any existing files with the same names at
  674.     the target location with the files that you're about to move or copy to
  675.     that location.
  676.  
  677.  
  678.     DELETING FILES
  679.  
  680.     To remove files from your hard disk, start by displaying the contents of
  681.     the directory containing the files in the Files list box. Then use the
  682.     keyboard or the mouse to mark which files you want to delete. If you're
  683.     interested in freeing up space on the drive containing the files, you
  684.  
  685.  
  686.  
  687.     ________________________________________________________________________
  688.                                           Chapter 4: Managing Files   70
  689.     ________________________________________________________________________
  690.  
  691.  
  692.     can check "Bytes marked" in the status area to see the total number of
  693.     bytes in the marked files.
  694.  
  695.     After making sure the files you've marked are the ones you intend to
  696.     delete, select Delete (ALT+6) from the DOS Shell's command line. A
  697.     dialog box appears asking you to confirm your intention to delete the
  698.     specified number of files. When you select <<Ok>>, the marked files are
  699.     removed from your hard disk.
  700.  
  701.     In the first two sections of this chapter, you learned how to use the
  702.     DOS Shell to display files that you're interested in working with and
  703.     how to perform a number of common file-management operations on those
  704.     files. We'll close the chapter with a look at some additional functions
  705.     you can carry out with the tree view.
  706.  
  707.  
  708.     USING THE TREE VIEW
  709.  
  710.     Earlier in the chapter, you were introduced to the tree view as a tool
  711.     for specifying the directory whose contents you want to display on the
  712.     DOS Shell and the directory to which you want to copy or move files.
  713.  
  714.     As you'll see in the next two subsections, in addition to these
  715.     functions, the tree view is an excellent information resource as well as
  716.     a tool that you can use to change the structure of your directories.
  717.  
  718.  
  719.     USING THE TREE VIEW AS AN INFORMATION RESOURCE:  Examining a tree view
  720.     is a good way to get a feel for the structure of the directories on one
  721.     of your drives, since it displays the hierarchy of directories,
  722.     subdirectories, and sub-subdirectories at a glance.
  723.  
  724.     To make it easier for you to browse through the tree views of your
  725.     drives, HyperPAD creates a separate tree view page for each drive the
  726.     first time you call up a tree view of that drive. (This process is
  727.     similar to creating separate DOS Shell pages, except that in the case of
  728.     the tree view, HyperPAD performs this function automatically.) Once your
  729.     tree list contains more than one page, you can use the keyboard's PGUP
  730.     and PGDN keys or the on-screen paging buttons to travel between pages
  731.     rather than having to use the command line's View Tree command (ALT+1)
  732.     to specify a drive each time you want to see a tree view.
  733.  
  734.     If you find that your tree view is becoming cluttered with pages for
  735.     drives that you seldom work with, just access each unwanted tree view
  736.     page and remove it by selecting Delete Page (ALT+3) from the command
  737.  
  738.  
  739.  
  740.     ________________________________________________________________________
  741.                                           Chapter 4: Managing Files   71
  742.     ________________________________________________________________________
  743.  
  744.  
  745.     line. Doing this simply eliminates the tree view page; it has no effect
  746.     on the contents of your hard disk. The next time you have occasion to
  747.     work with a drive whose tree view page you previously deleted, you can
  748.     create another tree view page for that drive by using the command line's
  749.     View Tree command (ALT+1).
  750.  
  751.  
  752.     USING THE TREE VIEW TO CHANGE YOUR DIRECTORIES' STRUCTURE
  753.  
  754.     The tree view also lets you create a new directory and delete a
  755.     directory from a drive.
  756.  
  757.     To create a new directory, call up a tree view of the drive on which you
  758.     want to place the directory, use the keyboard or the mouse to select the
  759.     directory to which you want to add a subdirectory, and then select Make
  760.     Dir (ALT+4) from the command line. A dialog box appears containing the
  761.     New directory text box, with the drive and directory information already
  762.     filled in (e.g., C:\FX\SAMPLES). All you have to do is type in the name
  763.     of the new directory and select <<Ok>>.
  764.  
  765.     To remove a directory or branch (including all the files and subordinate
  766.     directories within it) from your hard disk, call up a tree view of the
  767.     drive containing that branch, mark the branch with the keyboard or the
  768.     mouse, and then select Delete Branch (ALT+6) from the command line.
  769.     HyperPAD presents a dialog box asking you to confirm your intention to
  770.     delete the specified branch, together with its contents. Selecting
  771.     <<Ok>> removes the branch from your system.
  772.  
  773.     Be careful when you use the Delete Branch command, because if you take
  774.     material off your hard disk with this command, it's gone for good.
  775.  
  776.  
  777.  
  778.     ________________________________________________________________________
  779.                                           Chapter 4: Managing Files   72
  780.     ________________________________________________________________________
  781.  
  782.  
  783.     CONCLUSION
  784.  
  785.     Once you master the information presented in this chapter, you should be
  786.     able to access the files you want to work with by using the DOS Shell
  787.     and the tree view to display those files in the DOS Shell's Files list
  788.     box. You should also know how to sort the currently viewed files, how to
  789.     display subsets of the files in a particular directory, and how to find
  790.     a file on a drive. And you'll be able to update your DOS Shell and tree
  791.     view to reflect any changes you've made to the contents or structure of
  792.     your directories.
  793.  
  794.     After you have the files you want to work with displayed in the DOS
  795.     Shell's Files list box, you should know how to launch a program by
  796.     selecting a program file or a work file on the list; how to browse the
  797.     contents of one or more of the listed files; and how to copy and move
  798.     files on the list or delete them from your system.
  799.  
  800.     And finally, you'll know how to use the tree view not only as an
  801.     information resource that shows the structure of your directories but
  802.     also as a tool for selecting directories in order to perform certain DOS
  803.     Shell functions and as a tool for changing the structure of your
  804.     directories.
  805.  
  806.     In short, you'll be able to manage your files simply by using HyperPAD's
  807.     DOS Shell and tree view to display the contents of your directories and
  808.     then selecting easily understandable options and commands from pop-ups
  809.     rather than by manually entering a lot of hard-to-remember DOS commands.
  810.