C D P M A N U A L T A B L E O F C O N T E N T S Introduction p.01 Menus FIND (text in files) p.09 TSR (cont.) Text (specify) Memory Requirement IgnoreCase Help ViewResults Hotkeys p.02 Go CDPW2 MAX= 2nd Tree Asc-All SetMarkAction Command Line p.03 VIEW Run - Go Resident ASCII Disk To Use HEX If Monochrome Monitor Results (of finds, etc.) Screen Orientation DISPLAY p.10 Swapping Choices FileMatch (find file name) NotFileMatch Installing CDP p.04 OnlyMarked Putting CDP On Hard Disk 4Columns Running CDP 2Columns Personalizing Your Copy 1Column CDP + - Run Instantly p.05 ShowAll (disk as 1 big DIR) Fooling Around Tree (leave ShowAll) Removing CDP From Memory PreShowallDirectory File'sDirectory Key Strokes p.06 LOG The Usual Arrow Keys, etc. OTHER Other Basic Action Keys Initialize (Set Things) ESC Key Date (of files) Marking Files Time (of files) p.11 Help Attributes (of files) Path Volume (label a disk) Switch Windows Printer (rslts to LPT1:) Window Size Results(onto hidden file) See DOS's Screen ESC1 (how ESC key quits) 2nd Tree Compare(files - whole DIRs) Go To Dir Or File p.07 Export (to a 2nd disk) Go To Beginning Marked Export (files - DIRs) Go To Next Marked Compare(files - DIRs) Archive(files - DIRs) Menus - Commands p.08 Xcopy (entire trees) p.12 COPY Kompare (entire trees) MOVE List(entire disk structure) ERASE DirectoryNames RENAME FileNames SORT SortedDirectoryTree Ascending NaturalDirectoryTree p.13 Descending Mark (files) Name Attributes Extension Date (mark date ranges) Time Unmark Size ToggleMarks Location Newdir (create a dir) (All of 2nd column are in menus) KeepRslt (as a DOS file) Page i T A B L E O F C O N T E N T S (continued) Menus QUIT HotKeys p.21 (cont.) Quit(go resident again) General Principles Remove (from memory) ALT- hotkeys Continue(if change mind) CTRL- hotkeys p.22 XECUTE (other files) Other Single Keystrokes p.23 Xecute(w\ parameters) p.14 VIEW Keystrokes 1Xecute DirChange (SUPER chdir) SET Statements -- Options p.24 WP (run word processor) CDPMON - 1 for monochrome 2WP CDP_EMS - how to use EMS SetWP (set WP & params) CDPSWAP - which disk for swap ^P & AltP(PARAMETERLESS) CDPEDIT - word processor call CDPPOST - word processor opts Methods & Strategies p.15 CDPESC1 - what ESC key does Changing the Display CDPDEB - if using DEBUG Selecting Files for Commands Matching and Marking Files p.16 Technical, etc. p.25 Using ShowAll p.17 Swapping Multiple Drives Popping Up, etc. Viewing Results p.18 Removing CDP Use of File Attributes p.19 Key Board Usage 2 CDPs Running at Once p.26 View Function p.20 Limits & Warnings Cursoring & Movement Advanced Commands Search & Find Goto Anchors & Goto Browsing (over marked files) AltB -- Beginning Marked AltN -- Next marked Persistent Memory of Files Page ii CDP (Cliff's Directory Program) is Copyright (C) 1989, 1990 by Cliff Roberson, dba GoodWare 926 Leighton Way Sunnyvale, CA. 94087 All Rights Reserved in the United States and Worldwide. Introduction ------------ CDP is a TSR (Terminate and Stay Resident) program that can be popped up INSTANTLY over most common PC programs. It has MORE features than other full featured disk management programs, and is the ONLY one that works as a TSR. CDP is not a "shell" program. It does not load into memory extra copies of COMMAND.COM in order to execute your application programs. Unlike disk managers that may be able to "shell" out to let you run applications, CDP knows your disk status all the time. It won't lose track of what is on your disk while you run applications. You do not have to worry about "refresh" commands, as you do with other disk managers. Other disk managers will attempt to view files that you have already deleted. They are ignorant. CDP is superior to them. CDP requires DOS 2.0 +, and 169 KB of memory to be run by DOS, but swaps to disk or Lim-EMS. When swapping to disk, CDP needs only 9KB of regular DOS memory in your PC. Swapping to EMS, CDP needs: EMS Memory DOS Memory ---------- ---------- 160 KB 9 KB 112 KB 57 KB 64 KB 105 KB CDP has a complete set of menus to help you get started. Contextual help is present for all operations (over 300 screens). Use F1, F2, F3 for help. F1 contextual help F2 help for cursor keys F3 help for hot keys Page 01 The menus are easy to use, but once you are familiar with them, it is faster and easier to use the many HotKeys in CDP. See page 21. Many TSRs are finicky about the method of running them. CDP is not. Other TSRs may precede or follow CDP. CDP coexists nicely with most other TSRs, even some (which we will not name) that are notoriously ill-behaved. You pop CDP up by typing a HotKey. CDP has two HotKeys: Lshift-Lshift (Strike the left-hand shift key twice rapidly). CDP pops up displaying the same directory that it was displaying previously. Rshift-Rshift (Strike the right-hand shift key twice rapidly). CDP pops up displaying the current DOS directory. The HotKeys may be changed by the program CDPRENAM.EXE. CDP comes in two versions, CDP.EXE and CDPW2.EXE. They have identical features, except CDPW2 can show a 2nd directory tree (which can be on a NetWork disk). CDPW2 needs 5 KB more memory than CDP. This is over 50% more when CDP is using only 9 KB. In this document, we always say CDP, but everything applies equally to CDPW2. The names CDP and CDPW2 cannot be changed. The programs will not be able to find their contextual help. They can be run, but they will have no help. 2ND TREE A second tree is shown by alt-F4 in version 1.5A (CDPW2). A path can be "remembered" from it. Also, alt-D may be used to switch directories from the 2nd tree onto a disk other than the "logged" one. This 2nd tree works through DOS, and so may be used to see the directories of a network. But CDP cannot access files on a network! Page 02 CDP Command Line ---------------- CDP is usually run without parameters; however, the complete CDP command line is: CDP [+] [D] [Y] [Z] [0-6] (The brackets are not typed. They imply that something is optional. As you can see, all CDP parameters are optional.) + tells CDP to come up at once. It does not go resident in memory until you tell it to. (Do a QUIT-QUIT or ctrl-Q). If + is omitted, CDP puts its banner on the screen and goes resident. Omit the + if you run CDP in a batch file. D is the disk drive for CDP to work on when it first starts. If D is omitted, CDP starts on the current logged disk. Y tells CDP to run as if your monitor were monochrome. That is the only way to get a good contrast on some portables which have "shades" of gray (or whatever color). A real monochrome monitor does not need the Y. Z reverses the CDP screen. Normally, statistics are on the right hand side of the screen and the directory tree is on the left. Z makes that the other way round. 0-6 tell CDP how to use memory. This allows you to get the most out of your memory and hard disks. Default is 4: use LIM-EMS if possible; if not, use the first hard or RAM disk that has room. Page 03 Installing and Running CDP -------------------------- 1. Put CDP.EXE on your hard disk. For now, just use CDP. NOTE: We assume you wish to Do: keep CDP in directory C:\CDP and that the CDP distribution disk is CDP (add Y if you wish) on floppy drive A:. Congratulations! You are Do the following steps. They running CDP. will work regardless of the current state of your system, as CDP has gone resident and long as disk C: has sufficient will swap to disk C: or any EMS space on it -- approximately 1 you may have. The screen will tell megabyte. If your disk hasn't you how much memory CDP is using. enough space, or you have no hard You can pop CDP up into active use disk, see page 24 - SET COMMANDS. by striking either shift key twice rapidly. If you have a monitor that shows shades of a single color It will also advise you to (many portables), CDP's cursors use CDPRENAM.EXE to install your may not show up well. Adding a Y name as the CDP registrant. You to the invocations of CDP below can actually do that now, if you will relieve the problem. wish, or wait until any time in the future to do so. Alternately, you may use the DOS command Steps 3. - 6. below assume that you do so now. SET CDPMON=1 If you do not do step 3., It is best to try it first then strike a shift key twice with no adjustments. Nothing will rapidly. CDP will pop up onto the be harmed. screen and you can go to step 7. C: 3. Install your name in CDP. CD \ MD CDP Do: CD CDP COPY A:\*.* CDPRENAM $CDP.EXE your name CDP-PACK read and act upon the prompt CDPRENAM will install itself as a TSR, fool around causing TWO CDP is installed! DOS prompts to appear, insert your name into CDP.EXE on the disk (but 2. Run CDP. not the CDP in memory), and remove itself from residence. This is simple. There are 3 versions of CDP in the package, It is possible that your however: machine may hang after CDPRENAM CDPSW - shareware version runs. That is totally harmless, CDPW2 - has 2nd tree feature and CDPRENAM will have performed CDP - the basic program its task correctly. Page 04 CDPRENAM and CDPCOLOR are 5. Remove CDP from memory. extraordinary TSRs in that they are self-running, i.e., have no You probably expected us to hot keys, and do not assure 100% tell you to play around all you that, in case of bad timing, they wish with CDP. Go ahead and do so will not hang the system. They are if you wish. But to keep this intentionally flaky to make very introduction compact, we assume difficult any unauthorized you will perform this step next. tampering with CDP's registration numbers. Simply do: They always accomplish their alt-R objective, however; and modify CDP as they were intended to do. CDP will remove itself from memory. (Alt-R is the equivalent If you have a color monitor, of choosing QUIT followed by you may want to run CDPCOLOR at REMOVE in the menus.) some time. But you need not do so now. 6. Run CDP with the + option. Running either CDPRENAM or Do: CDPCOLOR achieves one additional goal besides those given in their CDP + (add Y if you wish) descriptions in CDP-PACK.DIR. It enables the CDP + option. Now the modified CDP on the disk, with the + option enabled, When you run CDP without +, will begin execution immediately, then CDP may be used in batch and your name will be displayed as files such as AUTOEXEC.BAT because the CDP registrant. You may run it simply puts its banner on the CDPRENAM and change that name as screen and needs no user typein. many times as you wish. But your copy of CDPRENAM will work only When you run CDP with +, CDP with your copy of CDP. is available for use immediately, which is very convenient; but 7. Now play around with CDP. running with + would be disastrous in a .BAT file! If you did steps 3. - 6., your name is on the screen. If CDP would come up and expect not, then it isn't. Big deal! commands to be typed, but you The program is 100% ready for use cannot type commands into a .BAT anyway. Enjoy yourself! file. The system would hang. Never put CDP + in a batch file. 8. Step 8. is the section on page 26 on running 2 CDPs. It's a 4. Bring CDP up actively. bit much for an introduction. Hit either shift key twice 9. To leave CDP, just type: rapidly. The CDP that is resident ctrl-Q will rapidly ingest disk C's which returns to DOS, leaving CDP directories, and show itself on resident. Or type: the screen, ready for use. alt-R to return to DOS and remove CDP from memory completely. Page 05 Key Strokes ----------- THE USUAL KEYSTROKES Use the arrow keys, etc., in F4 Get Path the obvious ways, and they will Remembers the path to the work just as one would expect. The current directory so that only exception is that right/left- you can recall it in CDP by arrow works on the main menu only. pressing the Right Shift key twice rapidly. ENTER is used to select menu choices. Or just type the first F5 Window Size Toggle letter of the command. Changes the files window to maximum size and back. SPACE is used to mark-unmark files; but only when in the files F6 Switch Windows window. The next section tells you Moves you back and forth how to get into the files window. between the directories window and the files window. NON-OBVIOUS KEYSTROKES F7 Unmark Files Unmarks all files in the The following keys will make current directory. working on CDP quick and easy. You may display them with F2. F8 Toggle Marks Changes marked files in the current directory to ESC Escape unmarked, and unmarked to Returns you to the Main or marked. previous Menu, and cancels any command you were in the F9 Mark Files Up process of selecting. Marks or unmarks the current file and moves the cursor Spacebar Mark File up. Marks or unmarks the current file in the files window. F10 Mark Files Down Marks or unmarks the current F1 Help file and moves the cursor Brings up context-sensitive down. help screens. Alt-F3 View DOS Screen F2 Special Keys Help View what was on the screen Brings up a help screen before CDP became active. describing CDP's special keys. Alt-F4 2nd Tree Brings up a 2nd directory F3 Hot Keys Help tree on another disk Brings up a help screen (CDPW2.EXE only). describing CDP's Hot Keys, single mnemonic keystrokes that bypass the menus and function immediately. Page 06 The next keys will help you move around in the directory tree and files window: Ctrl-left/right arrow Moves right/left in the files window (column-to-column). Home/End Moves to first/last directory or file. PgUp/PgDn Moves up/down one "page". Home/End With Scroll Lock On Raises/Lowers the top of the Files window. These aren't shown by F2, but it's nice to know about them now: /alphanumeric Go to Letter Moves to first directory or file whose name starts with the character after the / . alt-B Beginning Marked Goes to first marked file in the current directory (works in VIEW mode to allow easy browsing after doing Finds). alt-N Next Marked Goes to Next marked file in the current directory. Page 07 Menus and Commands ------------------ CDP helps you to organize and (disk letter plus a colon) is manipulate your files and typed when the destination is directories. Most CDP commands asked for. COPY can copy from can operate in 3 ways: on a single directories only. See single file or directory, all the the EXPORT menu under OTHER files in the current directory, for copying entire trees. or a group of marked files. MOVE CDP commands are located on the Move lets you move files or menu bar in the Menu window. They directories to another place can be selected in three ways: on your CURRENT disk. Move highlight a command and select it can move ENTIRE directory by pressing ENTER; type the first trees with lightning speed. letter of a command on the menu There is nothing else we (C for Copy); or use a HotKey to know of that is as fast! bypass menus (ctrl-F for Find). ERASE The Esc key returns you to the Erase permits you to erase Main Menu, or to the previous files and directories from menu if you are part way through the disk. You must erase all a command sequence. Pressing Esc files in a directory before cancels any command you were in you can erase the directory. the process of selecting. There is an option in the Initialize RENAME menu of OTHER to allow Esc to Rename changes the names of return to DOS from CDP. See existing files or a single page 11. directory. (NOTE: Here and later, the word SORT OTHER in all capital letters Sort allows you to sort in signifies the menu in CDP that is several ways. Sort does not named OTHER. "OTHER Initialize" alter your disk. It simply means: OTHER's Initialize menu). changes the order of display of file names, and the order The following descriptions will in which files are handled. familiarize you with CDP's menu structure, and introduce you to Ascending CDP's power and flexibility. sorts and displays your files from low value to COPY high value (A-Z). Copy allows you to copy one or more files to another Descending directory on your disk. Copy sorts from high value to is meant for copying files low values (Z-A). on the current loggged disk. Name Copy will copy to a 2nd disk alphabetically by name if and extension. d:pathname Page 08 Extension SetMarkAction= by extension and name. how CDP marks files Lack of an extension is where finds occur: the low value. 0= Don't take action. Time by time last changed. 1= Mark file if hit. Remove mark if miss. Size how many bytes. 2= Mark file if hit. No action if miss. Location by cluster number. 3= Remove mark if hit. Mark file if miss. FIND Find searches your files to 4= Remove mark if hit. find a text string. CDP will No action if miss. report occurrences in every file where there is a match. Default is SetMarkAction=1. Text lets you specify the VIEW text string CDP will View allows you to look at look for. the current file. You can view the Results of Find, IgnoreCase= Compare, and List. chooses whether or not View has a Find command of upper/lower case will its own. See page 20 for be ignored. additional commands in View. ViewResults ASCII views found strings. shows the contents of the current file on the Go screen as if it were in executes the Find. Ascii. If the nature of the file is HEX, you see MAX= lots of happy faces and specifies the maximum such. But you may also number of finds in a see character graphics single file (max 999). as it was meant to be If MAX=0, no results seen, and you can peek file is created and into .EXE files to see only one find is made their hidden messages. per file. HEX Asc-All shows the current file is a toggle. Asc means in HEX and ASCII. only Ascii files are searched. All means to Results search Hex files also. displays the most recent results of a Compare, List, or Find. Page 09 DISPLAY 1Column Display allows you to choose shows 1 file per line; how files are shown in the name, extension, size, files window. attributes, date & time, and cluster location. FileMatch lets you enter a ShowAll filespec (wildcards expands the Files window OK). Only the files to full screen and shows matching the filespec all of the files on the will be displayed or disk as if they were in acted upon by CDP. a single directory. Simply pressing Enter Extremely powerful when has the same effect as used with OnlyMarked. typing *.*. Tree NotFileMatch exits ShowAll mode and also allows a filespec. returns to the directory Files matching the spec tree window. You may are EXCLUDED, and will elect to return to the be unaffected by CDP directory you were in commands. when ShowAll started, or switch to the directory OnlyMarked of the file currently specifies that only under the cursor. files that have been marked (by FIND or any LOG other means) will show Log lets you change from the on the screen. current disk to another. A very useful command OTHER for seeing or acting This submenu contains some upon several groups of significant utilities + a files at a time. A "C" few small functions to help programmer could mark you work quickly and easily *.h, and then *.c, and in managing and structuring then *.asm. Then specify your hard disk directories. *.* so all files show; There wasn't room for all then use OnlyMarked so major functions in the main that only his source menu. files show. Initialize 4Columns ---------- shows 4 files per line: Initialize allows you to set name and extension. various values in CDP and in files on the disk: 2Columns shows 2 files per line: Date name, extension, size, allows you to set the and attributes. date of your files. You can choose the current Page 10 clock date, the last 2= QUIT and go previously typed date, resident. or type in a new date. Compare Time ------- allows you to set the This command compares the time of your files. You contents of files to that of can choose the current others. If the files are not clock time, the last identical, CDP reports the previously typed time, position where the files or type in a new time. differ. CDP also lets you compare files on size and Attributes date-time only -- a very permits you to set the fast way of determining the attribute bits of your differences between entire files. You may set them directories. Entire trees of as ReadOnly, Hidden, files may also be compared. System, or Archive. The See Kompare on page 12. attributes are written when you select the Go Export option. ------ Copy and compare files and Volume entire trees on 2 disks. allows you to change the volume label on the Export current disk. Labels copies to another disk. may be 11 characters. Compare Printer= compares files or allows you to choose directories of files to whether or not the those on another disk. results of a Compare, List or Find will be Archive sent to the printer. performs a true backup. Results= It copies only files lets you choose whether which have their Archive or not the results of a attribute bit set to 1. Compare, List, or Find As it copies files it will be saved in a resets the Archive bit hidden file so they can to 0. be viewed later. When the target diskette ESC1= becomes nearly full, it chooses the action taken continues to copy files when you hit the Esc key that fit, skipping those at the main menu level. that don't. 0= Ignore it. If the command finishes with uncopied files, 1= Warn by going to mount another diskette QUIT menu - but and do Archive again. don't quit. Page 11 It will now copy files Kompare skipped before, and not compares entire trees copy any of the ones with trees on a 2nd copied the first time disk. Useful with (because their Archive floppies that have a bits are now zero). directory structure that is the same as The Attribute Initialize some subtree on a hard menu may be used to set disk. up the Archive bits of files so Archive copies As with Xcopy, All and only desired files. Marked are the only meaningful selections. Archive can also copy Unlike Xcopy, Kompare only marked files. Very doesn't create files as nice when used with the it goes along, so if a FIND command, or Date directory or subtree is Intervals marked by the missing on the target OTHER MARK command. disk, Kompare cannot do anything meaningful. Xcopy Nevertheless it does the Copies entire trees to whole tree even if there a 2nd disk. If you are is no corresponding tree in the directory tree, on the target. Type Esc it copies or creates to stop it from spinning the directory that is its wheels fruitlessly. under the cursor as well as the indicated List files in its subtrees. ---- Generates a nice list of all If you are in the files directories on your disk. If window, it will copy the Printer=ON or Results=ON in files of that window the Initialize utility, then INTO the indicated output is to the printer or destination directory, the Results file. So you may and the subtrees of the View the results or use active directory into KeepRslt to get a file with that directory as well. a handy directory of your entire disk. It makes directories as needed to duplicate the DirectoryNames source directory tree lists directory names onto the target disk. but not file names. Current, All, Marked FileNames refer to the status of lists both directory files, not directories. and file names. All means ALL files of ALL subdirectories; You also choose the order of Marked, ALL Marked files the directory listing: of ALL subdirectories. Current means that only SortedDirectoryTree a single file is copied. will list directories in alphabetical order. Page 12 NaturalDirectoryTree The file can be saved only in lists directories in the root directory of the the same order that DOS disk that holds results. But lists them. the file may be given a DOS name of your choice. Mark ---- QUIT marks or unmarks files by Quit lets you leave CDP. several criteria: Quit Attributes lets you leave CDP and marks files according stay memory resident. to their attributes. After Quit, you return You can mark files to CDP via Hot Key. according to their ReadOnly, Hidden, Remove System, and Archive lets you leave CDP and bits. Nothing is marked remove it from memory until you hit GO. residence. After you do this you have to type Date CDP at the DOS prompt marks files within a to use CDP again. date range. Useful for Archiving files with Continue ARCHIVE. (You can turn returns to main menu on the Archive bits of without quitting. the marked files with Initialize Attribute.) XECUTE Xecute lets you run other Unmark programs from CDP and also works just like F7, and has a capability to switch unmarks all files in DOS directories that is much the current directory. superior to the DOS CHDIR. ToggleMarks CDP does NOT run COMMAND.COM works just like F8 to in order to execute programs. toggle marked files to There is NO "shell" overhead. unmarked; & vice-versa. CDP performs QUIT and remains Newdir resident in memory. It types ------ in for DOS the CHDIR commands Newdir adds a new directory to change directory, and the or subdirectory to the disk. paths and calls to execute programs, EXACTLY as if you The new directory is created ran the program at the DOS as a child of the current command line yourself. directory in the directory tree window. CDP is fast and accurate, removing the burden of typing KeepRslt long path names. -------- KeepRslt allows you to make a NOTE: CDP cannot run other real DOS file from the hidden programs if something already file that contains results. is running at the DOS level. Page 13 Xecute SetWP runs whatever file is asks you to specify the under the active cursor ACTUAL call that you WITHOUT CHANGING type in when you invoke DIRECTORIES. The file your word processor at must have an extension the DOS command line. of .EXE, .COM, or .BAT. You should not specify CDP pauses before the the entire path to your file runs, so that you word processor, nor its may type in parameters. file extension, unless After you type them, you you must actually type must strike Enter to those every time you run begin program execution. your word processor. The call may also be given 1Xecute by SET CDPEDIT= in DOS. is just like Xecute except that it CHANGES You also will be asked DIRECTORY residence to to type in any postfix that of the file to be parameters required for executed. the correct operation of your word processor. DirChange These may also be given causes CDP to perform a via SET CDPPOST= in DOS. QUIT after changing the DOS logged directory to Effectively, CDP does: be the same as that of the tree cursor. This CDPEDIT filename CDPPOST works EXACTLY like the CHDIR command in DOS; but it saves the hassle Two options are not on of correctly typing in a the menu, but may be run DOS path. Very handy! via HotKey only: WP ^P Proceed. Execute a file runs your word processor WITHOUT ANY PAUSE FOR for you WITHOUT CHANGING PARAMETERS. Do not DIRECTORIES, giving your change directories. WP the file under the active cursor to work AltP Proceed. Execute a file on. CDP must have been without any pause for told the ACTUAL call you parameters. CHANGE type to run your WP. DIRECTORIES. Either by a SET CDPEDIT= or by using the SetWP The reason why these are command described below. not on the menu is given in the help screen for 2WP the XECUTE menu. is just like WP except it CHANGES DIRECTORY residence to that of the file under the cursor. Page 14 Methods and Strategies ---------------------- Much of the work you will do in The Sort command lets you CDP requires only the selection select the order in which files of a single command from CDP's in the Files window are shown. command menu. But CDP becomes even more powerful when you use You can switch the active its commands and special keys in cursor from the Directories concert to achieve results. window to the Files window with the F6 function key or the Grey The following will discuss CDP Plus key. features with respect to common disk manipulation tasks. The ShowAll option of Display lets you look at all the CHANGING files on our disk as if they were THE DISPLAY in a single directory. There are many ways to You can limit the number of customize CDP windows to provide files displayed by selecting the a display optimum for your needs. FileMatch or NotFileMatch options of the Display command. And if By default, CDP shows four you mark files of particular columns of files in four lines of interest then you can limit the file window - 16 files. As you display to only the marked files move the cursor in the directory with the OnlyMarked command in tree, the files in the files the Display menu. window automatically change. SELECTING FILES You can increase the size of FOR CDP COMMANDS the files window and display more file names by turning Scroll Lock Most CDP commands operate on ON and using the Home and End a single file (the current file), keys to raise or lower the top of a group of marked files, or all the files window. Once you have files in the current directory. the window the size you wish, CDP will operate ONLY upon files turn the Scroll Lock state OFF. whose names are displayed on the That enables the use of Home and screen (or would be displayed if End to go to the first or the the screen were big enough). last part of windows. So when CDP offers a choice You can toggle the files of Current, All, or Marked, it is window from a smaller size to its always understood that whatever maximum size (showing 68 files in CDP does to the files will be 4column mode) by simply striking done only to those whose names the F5 key or the Grey Minus key. appear on the screen. If a file's name appears on the screen, the By entering the display menu file is said to be "matched". and selecting 2column or 1column mode, you may display additional You will use both the information about each file Directories window and the Files displayed. Many people prefer to window to make file selections. have 2column mode selected all The F6 or Grey Plus keys will the time so that all files' sizes move you back and forth between are displayed. the two windows. Page 15 You can change the current and OnlyMarked to specify which directory by using the Up/Down files will be displayed in the arrow keys when you are in the files window. Directories window. The files in the Files window automatically FileMatch and NotFileMatch change as you move from one ask for a filespec, which can be directory to another. typed using DOS wildcards. Once you have selected a CDP commands such as COPY, directory ("current" directory), ERASE, etc. will only apply to use the F6 key to move to the files which meet the matching Files window. There the keys criteria. allow you to select the current file. If you have a large number Use FileMatch to limit the of files, the PgUp, PgDn, Home, Files window to a certain type of and End keys will move you around file. For example, you could use through the files quickly. Also, filespec *.BAT, and only your holding the Ctrl key and pressing batch (.BAT) files would be left- or right- arrow will move displayed and affected by CDP from column to column. commands. In the Files window, you can Use NotFileMatch to EXCLUDE mark/unmark files one at a time a certain type of file from the with the Spacebar, which toggles display. For example, you could marking. To mark (or unmark) a use the filespec *.BAK, and then series of files, use the F9 and copy all your latest files (but F10 keys. F9 marks files and not the .BAKs) to a floppy disk. moves up; F10 marks and moves down. The border of the Files window indicates the filespec To toggle all marks in the which files are currently being current directory, press F8. matched against. The default filespec is *.*. The status To remove all marks in the window indicates the number and current directory, press F7. total size of the matched files. When you have marked only To return to a display of some files out of many that show all your files, use FileMatch, on the screen, you can alleviate and press Enter when prompted for the clutter of extra file names a filespec. CDP will then use the by striking alt-O to display only default *.* as the filespec, and marked files. all files will be displayed. Use OnlyMarked as a toggle. MATCHING AND For instance, suppose you have MARKING FILES been browsing around all over your disk, marking out-of-date The Display command of CDP files that you want to delete -- contains three options which let files with no particular names, you select subsets of the files extensions, or dates. When you in your current directory. You have them all marked, you can can use FileMatch, NotfileMatch, enter ShowAll mode with ctrl-S. Page 16 There may be so many files that To find the largest file on only two or three of the marked your disk, select ShowAll option ones show on each screen. Type from the Display command. Also alt-O (OnlyMarked) and then you select 2Column option so that you can see the names of all the can see each file's size. Then marked files at once on a single choose the Size option of the screen, before deleting them. Sort command and sort. Also choose Descending order and you USING will see the largest file first. SHOWALL To work with multiple copies The ShowAll display is one of a file, select ShowAll. You of the most powerful features of may also want to use the 1Column CDP. ShowAll allows you to look display so you can see as much at all the files on your disk as information as possible about if they were in a single large each file. Be sure the files are directory. This is especially sorted by Name. You will see all useful for hard disk users. the copies of a file grouped together. Now you can proceed Using ShowAll enables you to with other CDP commands without find a specific file without having to move back and forth knowing what subdirectory it is between subdirectories. in. Or, you can see at a glance where multiple copies of a file NOTE: When using Copy, Move, reside. Other uses include Rename, Erase, and other CDP locating all files created in a commands, the All and Marked certain time period, looking for options will refer to all files multiple files with the same (or all the marked files) on your name, etc. You can Sort by Time entire disk. You will be able to or by Name or Extension over the perform commands on many files at entire disk for those purposes. once this way, but you should do so with appropriate caution. Here are some ShowAll procedures you might want to try: MULTIPLE DRIVES To find a file without knowing its directory, select the The majority of CDP commands ShowAll option of the Display work with files and/or directories command. Locate the file by name. residing on a single disk drive. The file's path and directory This is referred to as the Logged will appear in the top line of Disk. the Menu window. You can then go to that file's directory to see Assume CDP is logged to other files by doing alt-T (Tree) Drive C. The Log command can be and saying you want to return to used to change disk drives, and the file's directory. is handy for quick operations on other drives. Page 17 To look at the directory of First make sure that the Drive D, use the Log command. logged disk drive is Drive C. In Specify Drive D (note that it is the tree window, select the tree not necessary to type a colon to compare. Use Grey Plus or F6 to when using the Log command), and enter the files window. CDP will display the root directory of disk D. Use Log to Next, choose the Kompare return to Drive C. option of the OTHER menu's Export command. When prompted for a Drive To erase ALL the files on a letter, enter A. When prompted for floppy disk in Drive A, use Log a path, just hit carriage return. to change to Drive A. Select Then select All. Display and then ShowAll, so that all the files on Drive A can be Files in the parent directory on C erased at once. Then select will be compared to files in the Erase, and choose the All option. root directory of A. And all sub- After the files have been erased, directories will similarly be use Log again to return to Drive compared. For super-fast compares, C. turn the Time-Size-Only option ON. To copy files from one drive CDP is the only program we know of to another, or to compare files that can perform these tasks. on two different drives, two methods are available. You may To copy files from Drive A use the regular Copy or Compare to Drive C, use Log to change to commands or use the Export menu Drive A. Then choose the Export commands in the OTHER menu. menu and use the Export command. You may mark files in different To use the regular Copy directories and Export them en command to copy to disk D, just masse by using ShowAll mode. type in D:Path when you are asked to point to he destination. The In tree mode you can copy fact that you typed a colon tells entire trees with Ex-Xcopy, which CDP that you are working with a will create directories as needed second drive. "Path" must be a on the target disk. To work with path specified all the way to the the trees once you've got them root directory. onto Drive C, use Log to change back to Drive C. For an easier way to enter Path, see Get Path (page 06) VIEWING or 2nd Tree (page 02). RESULTS The regular commands only Compare, List, and Find work on single directories. The produce results which are saved commands in the Export menu will temporarily for later review. work on entire directory trees or even entire disks! Results are saved only if the Results= setting has been set You can compare a directory ON before the operation is done. tree on Drive C to an ENTIRE It is ON by default, but can be floppy on Drive A! changed by the Initialize option of the OTHER menu. Page 18 To view results, choose the Hidden (H): whether or not Results option of View, or select the file is looked at some DOS ViewResults after a Find. commands (DIR, COPY, ERASE, etc). Results are temporary, and System (S): whether or not once viewed, will be replaced by the file is a system file. the results of later operations. Archive (A): whether or not Anywhere along the way, the a file has been written to since KeepRslt menu can save results in it was last archived (backed up). real DOS files for later use. There are two ways to see a If you have a printer, you file's attributes when you are in can produce results on it also. CDP. The 2Column/1Column options Select the Initialize option of of the Display command displays the OTHER menu and set Printer=ON attributes in the Files window. before you produce the results. If you are in the Files window, By default, this option is OFF. the current file's attributes are displayed in the Status window. The ViewResults option of Find is the same as the Results You can change a file's option of View; except that when attributes using the Attributes you leave View you return to the option under OTHER Initialize. Find menu. You can mark groups of files NOTE: Every time you view with particular attributes with results, it effectively closes a the Attributes option under the virtual results file. You may view Mark submenu of OTHER. and re-review results until you perform an operation that writes to the disk. When that occurs the last results are lost. But, to CONCATENATE RESULTS of several Finds and Compares, simply do not view the results until you have performed all the operations. USE OF FILE ATTRIBUTES CDP gives you access to the file attributes DOS uses to keep track of special properties of files. Attributes are toggles which can be on or off. CDP lets you see each file's attributes, change them, and even use them as criteria to mark groups of files. Each file has the following attribute bits: ReadOnly (R): whether or not you can write to a file. Page 19 View Function ------------- CURSORING A drops an invisible anchor at the top screen line. Up/Down Arrow scrolls the screen one line B puts the screen back where at a time. anchor A was dropped. Left/Right Arrow C drops anchor, just like A. scrolls one character at a time. D goes back to anchor C. PgUp/PgDn altB goes (still in VIEW mode) to moves 22 lines at a time. the Beginning marked file in the current directory. Home/End jumps to first/last line. altN goes (still in VIEW mode) to the Next marked file in the Ctrl-Left/Right Arrow current directory. scrolls 20 characters at a time. VIEW PERSISTS For additional flexibility, any of the above keys may be View remembers the last line prefixed by n, which specifies to viewed (in up to 5 files) and execute the command n times. For returns to that spot when you example, 55PgDn goes down 55 review the same file again at a screens = 22*55 = 1200 lines; as later time. if you struck PgDn 55 times. ADVANCED COMMANDS S specifies and searches for a string. Type in S followed by the string. Then press ENTER. The search cirles to the end of the file and then back to the 1st part again. The search respects case if IgnoreCase= 0 is set in FIND. The string specified is also used later when the FIND command does a search. F finds a string (specified by S or by a TEXT typein in the FIND command). nF finds the nth occurrence. nG goes to line n of the file. Page 20 HotKeys ------- Most can be used at almost any alt-B Go to 1st marked file in time from any context. directory (orShowAll)! When in VIEW, stays in General Principles of HotKey VIEW. Use: alt-C Compare - can compare to With few exceptions, the key is a 2nd disk! the first letter of the command to be executed. In general, ctrl-x alt-D Directory change in (where x is the first letter of a DOS. If using 2nd tree, command) is used for the first changes to dir from command that starts with x in the that tree. tree of menus. Alt-x will be a HotKey for the next command in the alt-E Ex-Xcopy (like DOS menu tree that starts with x. XCOPY) - copy entire trees or disks. To illustrate, Copy is on the MAIN menu (top of menu tree) so its alt-F Filematch in Display. HotKey is ctrl-C. Compare is down Set Mask with wild in the OTHER submenu, so its cards, etc. HotKey is alt-C. alt-G GO in Find - a real HotKeys are always safe to use. shortcut if alt-Q is in CDP always waits for confirmation effect! on all actions that will actually alter a disk. (However, alt-Q alt-H HEX in View - you can enables bypassing of confirmation do FINDs in hex mode. in all cases EXCEPT the ERASE command.) alt-I Initialize - sets file attributes, labels There is no HotKey for ERASE. It disks - a potpourri. would be too dangerous. ERASE always requires at least one alt-K Kompare in Export (no confirmation (except for the case one else has this!) - of a single, ordinary file). does trees. ALT alt-L List - gives very nice HOTKEYS compact list of whole disk structure - can be alt-F3 Show underlying DOS saved to file or sent Screen. to printer. alt-F4 Show second tree (of alt-M Mark in OTHER - tags same or another disk). files for operations in bunches. alt-A Archive in Export (allows neat backup of alt-N Goto next marked file large directories). in directory (or in ShowAll). When in VIEW, stays in VIEW. Page 21 alt-O Only-marked-files mode ctrl-D Display how many toggle (unmarked files columns to show, etc. don't show). ctrl-E Export - copy to a 2nd alt-P Xecute (Change to disk disk. and Dir of file to be executed. DON'T PAUSE ctrl-F Find - searches for for parameters). text strings, and marks the hits! (Or unmarks alt-Q Query-toggle (Whether them!) or not to ask "Do you wish etc.") Default is ctrl-G Go without further to ask. Erase always queries whether or not asks when more than 1 to continue. file is involved. Puts a warning up (QUERY ctrl-K KeepRslt - allows OFF) when in effect. saving results of searches, compares! alt-R Quit-Remove (leave memory altogether). ctrl-L Log - change (log is DOS's term for it) to alt-S ShowAll - show whole another disk. disk as if one big directory. ctrl-M Move - Fast! Moves entire trees almost alt-T Tree in Display takes instantly! you out of Showall Mode (with options). ctrl-N NewDir - creates a new directory. alt-V View Results (not same as ViewResults in Find) ctrl-O OTHER - simply a (shortcut). submenu with lots more good stuff. alt-W WordProcessor Call - Switch to text file's ctrl-P Xecute (Don't change directory. (CDP does not directory. DON'T PAUSE run COMMAND.COM. It runs for parameters). your word processor EXACTLY as if you had ctrl-Q Quit-Quit - return to called it from the DOS DOS or the application command line.) that was running when CDP was popped up. alt-X Xecute (Change Disk & Remain memory resident. Directory. Pause so that parameters may be ctrl-R Rename - renames files, typed in.) groups of files, and directories. CTRL HOTKEYS ctrl-S Sort (fast) by any of 6 criteria, ascending or ctrl-A Ascii (Text) in View. descending. ctrl-C Copy - can copy to a ctrl-T Text in Find - specify 2nd disk also. text to search for. Page 22 ctrl-V View - you can pick 3 Alt-N Goes to Next marked ways to see your data file in the directory. displayed. VIEW ctrl-W WordProcessor Call - No KEYSTROKES directory change. The View function has ctrl-X Xecute (No directory keystrokes available only in change. Pause for View. See page 20. parameter type-ins). OTHER SIGNIFICANT SINGLE KEYSTROKES ESC Leave whatever menu or function you are in. Stops operations such as Copy, Find, etc. Rshift-Rshift Recall what F4 remembered. (Default is Rshift-Rshift, which is the secondary HotKey of CDP. If secondary HotKey is changed, the new one then assumes this function.) ScrollLock When set, Home & End move the top of the Files window up or down. Allows adjusting the size of the files window to your own taste. Grey Plus Same as F5. (Toggles from directory tree to files window). Grey Minus Same as F6. (Zooms entire files window). Space Bar Toggle mark on a single file (no cursor movement). Enter If not being asked for as a confirmation, selects option under the menu cursor Alt-B Goes to Beginning marked file in the directory. Page 23 Set Statements - Options ------------------------ SET CDPMON= extension; nor a complete path, unless that is what you 1 Sets video for black & white must type to use your word suitable for Compaq. processor. SET CDP_EMS= Terminate the SET statement with a at the point you 0 Do not swap. would normally type a text file name. CDP will supply 1 Swap using only 64K of EMS. the text file name. 2 Swap using only 112K of EMS. SET CDPPOST= 3 Swap using 176K of EMS. WP Stuff List any flags, etc. needed 4 Use as much EMS as you can; after file name in WP Call. use disk if no EMS. SET CDPESC1= 5 Use EMS if can get 176K; (Action when Esc typed at otherwise, use disk. main menu.) 6 Use disk to swap -- ignore 0 Ignore it. EMS. 1 Go to QUIT. But don't quit. SET CDPSWAP= 2 QUIT. Go resident. d Where d is disk to use for swapping. SET CDPDEB= Default is C if disk C 1 Allows debuggers such as exists; disk A, otherwise. SYMDEB, etc. to work to debug But swapping on a floppy is CDP. If this is not on when a silly & slow. debugger is in use and CDP is brought up, the debugger may It is not necessary to use lock. this command if disk C or A is satisfactory. Remember that CDP may swap the debugger out of the If a non-existent disk is computer's memory. Normally, specified, no harm is done. do not use this statement. SET CDPEDIT= WP Call WP Call should be the EXACT command you type to run your word processor. It can give disk & path, spaces, etc. It is not necessary to specify your word processor's file Page 24 Technical - swapping, popping, etc. ----------------------------------- DISK CDP preserves directory & cursor SWAPPING positioning even after logs from disk to disk. Most all of the Disk-swapping may be used if EMS time, in fact. is not available. It requires 225000 bytes of disk space. Note ShowAll is persistent; i.e., after that a ram disk may be used as the a disk change or relog, you remain swapping disk, which is almost as in ShowAll if you were in it fast as using EMS directly. before. This is important, as many people may not have EMS, but have lots of CDP has the ability to swap extended memory for a ram disk. screens (only) when CDP is up and showing on the screen. A typein of The file CDPSWPQP.FXK is created alt-F3 makes CDP show the by CDP when swapping to disk. It underlying, saved, DOS screen. is a hidden, write-protected, Subsequently typing another system file. CDP shows the file character (any) restores the CDP & can delete it as well. If you do screen. that, CDP will hang if it is the one CDP is using to swap to. This can be very useful. You can do a Dir (or have an editor up, or However, when CDP removes itself, whatever), and toggle back and it also removes the file it is forth comparing the two screens swapping to. If one is left behind without CDP having to swap itself because of a system crash while in and out. This allows instant CDP is resident, CDP will reuse comparison of the screens. the file the next time it is run. Alternatively, if you do not run KEYBOARD the same configuration (so that USAGE CDP is not using the file for swapping), then CDP can safely be CDP pays no attention to any of used to delete the file. the common keyboard enhancement programs. But when dormant it POPPING UP, allows ALL keystrokes to pass ET CETERA through except CDP HotKeys, which are not even keystrokes (just CDP can safely swap on top of most double taps on mode keys)! When TSRs, including ill-behaved ones. CDP is up it will let nothing pass It works correctly whether loaded through if it can help it. Popping before or after the others, and up something over CDP is silly. regardless how many others. Instead, use ctrl-Q & let CDP go dormant; then do whatever you In any situation where cursoring please. The SET CDPDEB=1 option is allowed thru either files in allows keystrokes that are not the file window or directories in used by CDP to pass on to other the tree, then the typein /x, programs. where x is alphabetic, will move the cursor to the first file or Using this option is not advised. directory whose name starts with The program getting the keystroke the character x. In trees, the may hang the machine if it is not move is within the subdirectories an educated TSR. of the parent. Page 25 Note that CDP ALWAYS passes Both CDPs will be resident. You keystrokes to TSRs located below bring up the first by tapping it in memory. It only withholds shift-shift (right or left) and them from programs (including DOS the second by tapping ctrl-ctrl command line programs) loaded or alt-alt. The directory tree of after it in memory. Normally, CDP the 1st will be on the left; that has no problems with any keyboard of the 2nd, on the right. You can enhancers. Just remember what was log either of them to any disk. said above about "silly". If you just sit & tap ctrl-ctrl and lshift-lshift alternately, The files SETKB.EXE & CDPKB.EXE. they will merrily swap over one SETKB.EXE will set the keyboard another. Sort of pointless until speed if you have one of the you read 2CDPS.CDP; but kind of newer, extended keyboards (and fascinating to watch. some older ones). LIMITS AND WARNINGS SETKB explains itself if you just LIMITS & type SETKB ? . WARNINGS CDPKB is essentially the same When EMS is called for, at least thing, but goes resident so CDP 64 KB is required or no reduction can use it internally. takes place. Calling for EMS is harmless if there isn't enough. The purpose is to allow CDP to speed up the keyboard when it is The current version of CDP allows running, but restore its speed for a maximum file of 6 megabytes. afterwards. A resident program is If a larger file exists, DANGER! required because there is no way shoes on the file spec line and to read memory or the keyboard to the file is SUPER-protected. You find the current speed and restore may VIEW the first part of the it. CDPKB keeps track of the file or MARK it. But CDP WILL NOT current KB speed so CDP can speed let you manipulate, compare, or up the keyboard and then restore search the file. The maximum number it properly. of files on a disk is 2800 and the maximum lines in VIEW is 65,000. RUNNING 2 CDPS Caution must be taken with comm programs & spoolers. A spooler or The file 2CDPS.CDP is devoted to comm program may hang if is active explaining how to run two copies when CDP is brought up over it. of CDP simultaneously, and why it This can be avoided simply by not can be advantageous to you. typing shift-shift while a comm program or a spooler is engaged But it is sort of a gas just to do with active data transmission. it & watch the program simply swap If no data is flowing, everything with itself; without paying much is fine. attention to the nuances of it. CDP does work on top of most Just type: popular comm programs. We use it CDP all the time while calling BBSs. Then type: CDP If disk-swapping fails, CDP will again. reboot the system after telling you what happened. There is little else it can do, because most of CDP is missing from memory. Page 26