The Command Line Utilities Version 1.9 by Erik Skamser Digital Data Systems 343 S. Dearborn St., Suite 902 Chicago, Illinois 60604 ph. (312) 427-1262 CompuServe 70521,260 (c)1989, 1990 All Rights Reserved INTRODUCTION ------------ The Command Line Utilities are some simple programs that make working on personal computers -- at the command line -- just a little easier. These days talk of "Graphical User Interfaces" is very seductive; however, for the time being these GUI's are still inadequate for getting real work done. Perhaps the Presentation Manager for OS/2 or the next version of Microsoft Windows will change it all. However, for now most PC users are still finding the need to be familiar with DOS commands and a variety of utility programs at the command line. This is version 1.9 of The Command Line Utilities. (I have fixed some bugs and optimized the code for size since version 1.0.) These utilities were created with the idea that often the simplest program is the best. They are meant to be useful and intuitively obvious, so that recourse to the manual (such as it is) will seldom be necessary. This is the final version of The Command Line Utilities in its present form. Watch for other products from Digital Data Systems! MOVE.EXE -------- Have you ever understood why there isn't a DOS file called MOVE? I haven't. In fact, I haven't been able to find a shareware or public domain MOVE program either, except as part of a complex DOS shell. For those of us who work at the DOS prompt sometimes, it's actually no better (perhaps worse) to call up a shell just to move one or two files than to just go ahead and copy and delete them. So I wrote a MOVE utility; actually two of them (see MOVESAFE.EXE). MOVE.EXE does just what you'd think it would; you just type MOVE [d:][path]filename [d:][path]filename and the file(s) are moved. The DOS wildcards * and ? are supported. If you wish to move a file into the current (default) directory, there's no need to repeat the filename; the file will be copied into the current directory and the original file deleted, if and only if the copy is successful. Further, MOVE.EXE will only overwrite a file with a file the same age or newer. It checks the file creation dates to be sure you're not replacing a newer file with an older one. But be careful not to move a file from and to the current directory. "MOVE filename.ext" (when filename.ext is already in the current directory) will copy AND THEN DELETE the file! It does warn you first; if you see the "Careful!..." error message, please do be careful. This is the situation it refers to. Simply press the letter C while holding down the Ctrl key to abort the process. The usual DOS rules for copying and deleting apply. So be careful; I once did this: MOVE filename.ext \utils but I misspelled the name of the directory (it was \util). I ended up with my file in the root directory of the current drive, renamed "utils"! MOVESAFE.EXE ------------ I wrote MOVESAFE.EXE out of a fear that I might have two completely different files with the same name; it does happen sometimes. How many READ.ME files have you seen, for example? MOVESAFE.EXE takes the safety feature of MOVE.EXE (overwriting files only with newer versions) one step further and refuses ever to overwrite any file. However, there's a price to pay for this; you must always specify the target filename with MOVESAFE.EXE. If you don't specify two complete filenames, MOVESAFE.EXE will refuse to do anything at all. So if you don't mind a little extra typing, MOVESAFE.EXE will provide that little bit of added security. As with MOVE.EXE, the syntax is: MOVESAFE [d:][path]filename [d:][path]filename You may want to rename MOVESAFE.EXE to MOVE.EXE (or just M.EXE) for convenience. EXTRACT.EXE ----------- Have you ever had trouble remembering the syntax to use in extracting a .ZOO file as opposed to a .ZIP file as against a .PAK file? How about a file you've just downloaded from your favorite BBS which has an .SDN extension? Well all of the programs needed to make these compressed files functional with all of their different command-line switches can be confusing. So I wrote EXTRACT.EXE which does it all for you! EXTRACT.EXE works with the appropriate shareware programs to automatically extract .ARC, .ZIP, .PAK, .SDA, .SDN, .DWC, .LZH, and .ZOO files. All you have to remember now is that you must type: EXTRACT [d:][path]filename and be sure not to use the filename extension, since EXTRACT.EXE determines that for you. That's it! EXTRACT.EXE doesn't do all the work of extracting these files by itself, though; it relies on the programs written by the authors of the various compression formats to work with it to do the job. The file names required to be in a subdirectory listed in your PATH along with the complete shareware files that contain them are as follows for each format: Extension File Name Parent File --------- --------- ----------- .ARC PAK.EXE and PAK.CNF PAK210.EXE .ZIP PKUNZIP.EXE PKZ110.EXE .PAK PAK.EXE and PAK.CNF PAK210.EXE .SDA PAK.EXE and PAK.CNF PAK210.EXE .SDN PAK.EXE and PAK.CNF PAK210.EXE .ZOO LOOZ.EXE LOOZ210.ZIP .DWC DWC.EXE DWC501.EXE .LZH LHARC.EXE LH114B.EXE Please note that if the appropriate shareware files are not in your path you will get a "Bad command or filename" error message when using EXTRACT.EXE and your file will not be extracted. PRINTIT.EXE ----------- By first logging onto the drive and directory that contains The Command Line Utilities (in particular, PRINTIT.EXE and MANUAL.TXT) and typing PRINTIT, the manual will automatically print to your printer, if it is connected to printer port LPT1. If you don't know which port your printer is connected to, it's probably LPT1 so go ahead and use this utility. If your printer is connected to LPT2, use the utility PRINT2.EXE. HISTORY ------- Version 1.0 - MOVE, MOVESAFE, EXTRACT, PRINTIT, PRINT2 released November 1989 Version 1.1 - Fixed a minor bug in EXTRACT Version 1.2 - Added an error message to MOVE that warned against moving a file to and from the default directory and thereby losing it Version 1.3 - Added EXTRACT support for .DWC and .LZH files as well as bulletproofing by allowing (presumably inadvertent) use with self-extracting .COM and .EXE files Version 1.31 Minor bug fix Version 1.32 Reduced .EXE disk file size for all programs, approximately 30%. Version 1.33 Fixed a problem with EXTRACT handling .PAK files Version 1.9 Fixed a problem with EXTRACT handling some older .ARC files REGISTRATION ------------ Please register your copy of The Command Line Utilities if you find one or more of them useful. A good rule of thumb is that if you find yourself using them even occasionally after 30 days, register. If, however, you've deleted them from your hard drive... well, then don't register. Registration is $5.00 for the complete set, and will get you (optionally) a disk with the most recent version of all the utilities plus the on-disk manual. If you would also like the shareware file extraction utilities listed above, enclose an additional $1.00 and I will send them to you as well. I have no connection whatsoever with the authors of those shareware programs and I provide them in their original forms simply as a convenience to you. There are additional registration fees connected with these programs. You may fill out the form at the end of this manual as an easy way to register. DISCLAIMER ---------- The Command Line Utilities are provided as-is, with absolutely no guarantee or warranty of any kind. There is no verbal or implied warranty and none should be inferred. The author cannot be held responsible for any damages resulting from the use of any of The Command Line Utilities. REGISTRATION FORM ----------------- =============================================================================== REGISTRATION FORM The Command Line Utilities Version 1.9 _____ I enclose $_____ for _____ copies of The Command Line Utilities @ $5.00. _____ $1.00 is also enclosed for one copy of all of the shareware extracting utilities PK361.EXE, PKZ110.EXE, PAK210.EXE, DWC501.EXE, LH114B.EXE, and LOOZ210.ZIP (or newer versions). Send me [] 5.25" or [] 3.5" disk(s) NAME ________________________________________________________________________ ADDRESS _____________________________________________________________________ CITY________________________________STATE_______________ZIP__________ Please make your check or money order payable to Digital Data Systems and mail to: Erik Skamser Digital Data Systems 343 S. Dearborn, Suite 902 Chicago, IL 60604 Comments: ===============================================================================