home *** CD-ROM | disk | FTP | other *** search
- File Commando - A file utility for OS/2
-
- For those familiar with the DOS utility Norton Commander, FC (following the
- axiom that imitation is the sincerest form of flattery) attempts to provide
- most of the same functionality under OS/2.
-
- Using FC you can copy, move, rename, delete, find, view, and edit files in
- a multi-window file list. This list shows two directories, through which
- you can navigate using the cursor, page up & down, home and end keys. The
- TAB key switches between the two directory windows. Pressing the RETURN key
- when a directory is highlighted will move into that directory. Pressing the
- SPACE BAR or INS key when a file is highlighted will mark that file for later
- copy, move, or delete operations. Directories cannot be marked.
- The + and - keys can be used to select or unselect (respectively), files
- matching a specified pattern.
-
- Commands are shown at the bottom of the main screen, and most can also be
- accessed using mnemonic characters. The available functions are:
-
- F1, g - Goto: Change the drive or directory of the current panel
-
- F2, r - Rename: Rename a single file
-
- F3, v - View: Launches a viewing program to examine the selected file.
- The viewing program is specified by in the TOOLS.INI file.
- See TOOLS.INI below.
-
- F4, e - Edit: Launches an editor in the same way as the viewer, above.
-
- F5, c - Copy: Copies the current file (highlighted by the bounce bar) or
- the marked files to the other directory. If you a press
- Copy while a directory is selected, the whole directory,
- along with all its files and subdirectories, will be copied
- to the other directory.
-
- F6, m - Move: Moves the current file (highlighted by the bounce bar) or
- the marked files to the other directory.
-
- F7, k - Mkdir: Creates a new directory in the current directory
-
- F8, d - Delete: Deletes the current file (highlighted by the bounce bar) or
- the marked files from the current directory. If you press
- Delete while a directory is highlighted, FC will ask you to
- confirm removing the directory, and will then REMOVE THE
- ENTIRE SUBDIRECTORY TREE BASED AT THAT POINT. This can
- obviously be dangerous, and YOU HAVE BEEN WARNED!
-
- F9, f - Menu: Brings up a menu of other functions:
- Change Sort Order: Allows you to sort the directory list by
- name, extension, file date and time, or size.
- Compare Directories: Marks all files which do not appear in
- both directories, or the newer version
- of files which are in both directories.
- Find File: Searches the disk for files matching a given
- pattern.
- About: Shows author and copyright info about FC.
-
- F10, q - Quit: Immediately terminates FC.
-
- Other commands, not on the menu, are:
- /: Search for a file. This scans the current list for the first
- file or directory name most closely matching the string you
- enter at the '/' prompt (which appears under the list windows)
-
- !: Execute a command in the current directory. This allows you
- to type in a command line to execute (at the '!' prompt). The
- command is executed in the current session, so you cannot
- launch a PM program. Any '@' character in the command line
- is replaced with the full path of the current file. A '^'
- character is replaced with the names (but not paths) of all
- files which are marked in the current directory. So, for
- example, you could mark a bunch of files and then type:
- !pkzip files.zip ^
- to archive all the marked files.
-
-
- The TOOLS.INI file
- For those unfamiliar with Microsoft products, many are configured using
- ASCII text configuration files, one of which is called TOOLS.INI. This
- file is located in the directory pointed to by the INIT environment variable.
- The TOOLS.INI file is divided into sections, delimited by "[SECTIONNAME]",
- and within each section are placed one or more configuration parameters in the
- format "parm = value". Any text following a ';' is ignored.
- Here is an example section from a TOOLS.INI file for FC, along with
- explanations of the various parameters.
-
-
- ;-------------------Configuration for FILE COMMANDO------------------------
- [FC]
- BorderColor = 31 ; White on Blue
- WindowColor = 31 ; Ditto
- HilightColor = 30 ; Blue on Grey
- SelectedColor = 113 ; Yellow on Blue
- Viewer = d:\bin\l.exe @
- Editor = c:\os2\e.exe @
- Extensions = ZIP ZOO LZH ARC TXT
- TXT = d:\bin\l.exe @
- ZIP = c:\os2\cmd.exe /K "pkunzip -v @"
- ZOO = d:\bin\zoo.exe v @
- LZH = d:\bin\unzip.exe -v @
- ARC = d:\bin\unzip.exe -v @
- ;-------------------Configuration for FILE COMMANDO------------------------
-
- The first four parameters specify screen attributes used by FC. All video
- attributes are defined as bytes as shown below.
- Calculate a color value by taking the desired background color in the high
- nibble and the foreground color in the low nibble and computing the decimal
- equivalent. For example, Bright Cyan letters on a Red background would
- correspond to a Hex value of 0x47, or decimal 71. The color values are
- shown in the chart below.
-
-
- +---7----+---6----+---5----+---4----+---3----+---2----+---1----+---0----+
- | | Bkgrd | Bkgrd | Bkgrd | | Forgrd | Forgrd | Forgrd |
- | Blink | Red | Green | Blue |Intense | Red | Green | Blue |
- +--------+--------+--------+--------+--------+--------+--------+--------+
-
- BLACK 0x0 BLUE 0x1 GREEN 0x2 CYAN 0x3
- RED 0x4 MAGENTA 0x5 BROWN 0x6 LTGREY 0x7
- DKGREY 0x8 LTBLUE 0x9 LTGREEN 0xA LTCYAN 0xB
- LTRED 0xC LTMAGENTA 0xD YELLOW 0xE WHITE 0xF
-
- Table 1. Screen color values
-
- The VIEWER and EDITOR parameters specify the programs to be launched by the
- VIEW and EDIT commands described above. The full path of the executable file
- must be specified, including the extension (.com or .exe). The '@' character
- in the command will be replaced by the full path specification of the selected
- file.
-
- The EXTENSIONS paramter allows you to specify commands to be executed when
- you press ENTER on a file list entry. Each extension specified on the
- EXTENSIONS line must have a corresponding parameter listing the command (in
- the same format as for the VIEWER above) to be executed for files with that
- extension. This command will be started in a new session, separate from FC.
-
-
- Note for modem users.
- Since the cursor movement keys do not usually transfer well through most
- terminal programs, the numbers on the IBM keypad corresponding to the
- cursor keys will also be accepted for movement in most lists.
-
-
- FC was written by Sean Purcell, and is copyright (c) 1991,1992 by
- Sean Purcell, all rights reserved. FC is provided as FREEWARE, no
- compensation need be provided for it's use, although a six pack of good beer
- is always welcome. :-)
- FC has been tested with OS/2 version 1.21, 1.3, and 2.0
-
- Send questions or comments to the author at:
- CIS: 73650,372
- Internet: 73650.372@compuserve.com
-
- Please let me know if you use this program, whether or not you like it, and
- what you would like to see added, enhanced, or changed.
-
- Revision History
- v1.1 - Internal use, testing
- v1.2 - Added string editing, file selection count, sort by size,
- directory stacking. First release version.
-
- Known Problems:
- + The bounce bar sometimes leaves a ghost behind after a '/' operation.
- + Returning to a higher level directory always puts the directory at the top,
- instead of where it was in the list. Not a bug, but could be better.
- + Screen colors are not preserved when launching external programs
-