XDIR\XDIR.DOC  ·  DOC  ·  13.9 KB  ·  1990-05-01  ·  from PCPlus_Personal-Productivity-Pack_Disk-1_Jun-1990
XDIR
Paul Sanderson

INTRODUCTION

Anybody who uses disks with large numbers of files and directories 
understands the problems of keeping the data organised. MS-DOS 
provides limited tools to achieve these ends, but the process is 
difficult and time consuming. X-DIRECTORY helps by providing a 
graphical view of your disk structure and allowing you to move, copy 
and delete files in a fast, efficient manner.

What can X-DIRECTORY do?

* Display a combination of up to 3000 files and directories.
* Make new directories.
* Delete existing empty directories.
* Rename directories.
* Hide/Unhide directories (invisible to MS-DOS DIR command)
* Copy a file(s).
* Rename files.
* Move a file(s) between directories (much quicker than COPYing)
* Delete file(s).
* Alter file attributes.

System requirements :

X-DIRECTORY requires approximately 200Kb of memory and MS-DOS version 
3.01 or greater

Running X-DIRECTORY

Simply type XDIR [Return] to view the contents of the disk in the 
current drive. To access files from a different drive, simply type 
XDIR followed by a drive letter (eg XDIR C:). X-DIRECTORY reads the 
contents of the specified disk, displays the directory structure and 
awaits your command.

The display

X-DIRECTORIES display is divided into 5 parts as shown

     /-------------------------------------------------------\
     |                Statistics and help (1)                |
     |                                                       |
     |-------------------------------------------------------|
     |                                         |             |
     |                                         |             |
     |                                         |             |
     |          Directory Window (2)           |             |
     |                                         |             |
     |                                         |  Command    |
     |-----------------------------------------|             |
     |                                         |  Window     |
     |                                         |             |
     |             File Window (3)             |    (4)      |
     |                                         |             |
     |                                         |             |
     |                                         |             |
     \-------------------------------------------------------/
                   Prompt Window (5)


The function of each window is described below

1 -  Displays statistics about the disk, (Volume name, Capacity, 
     Amount free, Percent free, Number of files and the Number of 
     directories) current directory (Name, Total size of files and 
     Number of files) and current file (Name, Attributes, Size, Date 
     and Time or creation).
     
     When in Help mode, this window displays command-sensitive help.

2 -  The Directory Window displays a graphical view of the disk's 
     directory structure with the current directory highlighted. This 
     may be changed by using the keys on the numeric key pad.

3 -  A window onto the files in the current directory is displayed in 
     the format specified by the [F3] function key. The current file 
     is highlighted and may be changed by using the numeric key pad.

4 -  The Command window displays all the commands currently available.
     This window will change as you move from the directory to the 
     file window. Due to the number of file commands available, a list 
     of function key commands is not displayed while using the file 
     window (they are displayed in 43 or 50 line, high resolution 
     modes), however these commands are still available.

5 -  The prompt window will normally display the Path to the current     
     directory. However, it is also used to display prompts to the 
     user from those commands which require additional information.

Function Keys

F1 - Display the help screen. Once help is activated, pressing any of  
     the currently available command keys displays help on that 
     command. Eg. to obtain help on Copy Tagged Files, ensure you are 
     in the file window and press [F1] followed by [Ctrl][C] (hold 
     down the [Ctrl] key and press [C]). Once in Help mode you may 
     obtain help on any number of commands. Press [Esc] to return to 
     Normal operations.

F2 - If you have an EGA/VGA screen, pressing [F2] switches between 25 
     line and 43/50 line modes.

F3 - This key toggles the display in the File Window between one of       
     three modes.
          Mode 1 - short display - File names and extensions only.
          Mode 2 - medium display - As above with the addition of file  
                   size.
          Mode 3 - long display - display full details of file. ie. 
                   name, extension, attributes, size, date and time of 
                   creation.

F4 - Adjusts the partition between the file window and the Directory 
     window. Press [F4] followed by either the Up or Down cursor keys 
     to move the partition up or down one line, Or press the [PgUp] or 
     [PgDn] keys to move the partition to the maximum position in 
     either direction, Press [Home] at any time to return to the 
     default partition position. When you are happy with the new 
     position press [F4] again to return to normal operations.

F5 - Exit temporarily to DOS and start a new command processor. When 
     you have finished with MS-DOS, type EXIT to return to 
     X-DIRECTORY.

F10- Finished with X-DIRECTORY? Enter [Y] or [N] at the prompt.

Moving around in the directory window

[Up Arrow]    - Move to previous directory.
[Down Arrow]  - Move to next directory.
[Left Arrow]  - Move to parent directory.
[Right Arrow] - Move to first sub directory or next directory.
[Home]        - Root directory.
[End]         - Last directory.
[PgUp]        - Top of screen or go back one screen if already at top.
[PgDn]        - Bottom of screen or forward one screen.
[Tab]         - Move to File window.

Directory Commands

Command : [N] - New drive
Result  : Change to new drive and read details
Usage   : Enter the letter corresponding to the drive to which you 
          wish to change.
Errors  : Invalid drive - drive letter not allowed or drive not ready                           
          no action is taken

Command : [M] - Make directory
Result  : Creates a new empty directory and makes it the current 
          directory
Usage   : Enter name for new directory
Errors  : Cannot create directory - invalid name, root directory full                                      
          or directory/file exists
          Name too long - extra characters ignored

Command : [D] - Delete directory
Result  : Deletes an existing empty directory
Errors  : Directory not empty - directory must be empty
          Cannot delete directory - directory not empty (includes                                     
          Sub-directories)
          Cannot Delete Root - You cannot delete the root directory

Command : [H] - Hide/Unhide directory
Result  : Hides or Unhides directory depending on current state
Errors  : Cannot hide Root directory

Command : [R] - Rename directory
Result  : Renames the current directory
Usage   : Enter a new name for the current directory
Errors  : Cannot rename Root - the root directory cannot be renamed
          Cannot rename directory - illegal name or directory/file 
          exists
          Name too long - extra characters ignored

Moving around in the file window

[Up Arrow]    - Move to previous file.
[Down Arrow]  - Move to next file.
[Left Arrow]  - Move to column on left.
[Right Arrow] - Move to column on right.
[Home]        - Go to first file in directory.                                               
[End]         - Go to last file in directory.
[PgUp]        - Top of screen or go back one screen if already at top.
[PgDn]        - Bottom of screen or forward one screen.
[TAB]         - Move to Directory window.

File commands

Control commands are obtained by pressing and holding down the control 
key [Ctrl] and then pressing a letter key.

Command : [N] - New drive
Result  : Change to new drive and read details
Errors  : Illegal drive - drive letter not allowed or drive not ready                           
          no action is taken

Command : [T] - Tag file
Result  : Tags the file for multi-file operations

Command : [Ctrl][T] - Tag all files
Result  : Tags all the files in the current directory

Command : [U] - Untag file
Result  : Untags the current file

Command : [Ctrl][U] - Untag all files
Result  : All tagged files in current directory are untagged

Command : [D] - Delete current file
Result  : The current file is erased and its directory entry removed
Usage   : When selected you are prompted 'Are you sure?'. If you wish 
          to continue press [Y], else press [N] to Abort
Errors  : Cannot delete (filename) - command has no effect (the file 
          may be read-only, use attribute command)

Command : [Ctrl][D] - Delete tagged files
Usage   : When selected you are asked whether you wish to confirm each           
          delete. If you answer [Y], you are prompted 'Are you sure?' 
          for each tagged file, otherwise all tagged files are deleted 
          without further prompting.
Result  : All tagged files in current directory are deleted
Errors  : Cannot delete (filename) - command has no effect on that 
          file (the file may be read-only, use attribute command)

Command : [C] - Copy file
Result  : File can be copied to directory and/or name of your choice
Usage   : You are asked 'Copy to what filename?'. You may reply with a 
          name of your choice, either a name within the current 
          directory, or a path/name to another directory. If the 
          destination file exists the following prompt is displayed.           
          File exists. Overwrite/Rename/Abort (O/R/A)
               Overwrite - existing file is overwritten and destroyed                
               Rename    - destination file can be renamed                
               Abort     - Command has no effect
          Select the option required to continue the command.
Example : The current file is \myfiles\thisfile.fil
          To copy to thisfile.bak enter filename : thisfile.bak
          To copy to same name in the directory \myfiles\backups           
          enter filename : backups\ or \myfiles\backups\
          To copy to thisfile.bak in backups : backups\thisfile.bak
Errors  : Cannot overwrite file in same directory (two files cannot 
          exist in the same directory with the same name) - command 
          has no effect
          Cannot do copy - Command has no effect
          Filename too long - extra characters ignored

Command : [Ctrl][C] - Copy tagged files
Result  : all tagged files can be copied to the directory of your 
          choice
Usage   : You are asked 'Copy to what filepath?'. You may reply with a 
          name of your choice, either a sub-directory within the 
          current directory, or a path to another directory. You are 
          then prompted 'Automatic overwrite if file exists (Y/N)?'. 
          If you answer [Y], all existing files with the same name are 
          destroyed, otherwise you are prompted as follows, if the 
          file exists. File exists. Overwrite/Rename/Abort (O/R/A)
               Overwrite - existing file is overwritten and destroyed                
               Rename    - destination file can be renamed                
               Abort     - Command has no effect
          Select the option required to continue the command.
Errors  : path not found - illegal filepath, command has no effect

Command : [M] - Move file
Result  : Current file may be moved to any other directory
Usage   : You will be prompted 'Enter path for destination directory'.           
          Enter a valid filepath, either from the current directory or 
          a full filepath from the root directory. If the file does 
          not already exist in the destination directory, it will           
          be moved.
Example : The current file is \myfiles\thisfile.fil
          To move to root directory enter : \
          To move to directory \myfiles\backups enter : backups or 
               backups\
Errors  : Directory not found - command has no effect
          Cannot move file - command has no effect (file exists in                              
          destination directory)
          Cannot move to same directory - command has no effect.

Command : [Ctrl][M] - Move tagged files
Result  : All tagged files moved to new directory
Usage   : You will be prompted 'Enter path for destination directory'.
          Enter a valid filepath, either from the current directory or 
          a full filepath from the root directory. All files that do 
          not already exist in the destination directory are moved.
Example : The current directory is \myfiles\
          To move all tagged files to the root directory enter : \
          To move all tagged files to directory \myfiles\backups           
          enter : backups,  backups\ or \myfiles\backups
Errors  : Directory not found - command has no effect 
          Cannot move file - command has no effect on current file                              
          (file exists in destination directory)
          Cannot move to same directory - command has no effect

Command : [R] - Rename file
Result  : current file is renamed within directory
Usage   : At prompt Enter name for new file, do so.
Errors  : Cannot rename file - illegal filename, command has no effect           
          File exists - command has no effect
          Filename too long - extra characters ignored

Command : A - Attributes
Result  : Any attribute of the current file may be changed
Errors  : None