Chapter 22. Third-Party Utilities

Enhancing Your Computer with Utility Programs

Because DOS has been available for so long and has been used on so many computer systems over the years, several utility programs that run under DOS and can accomplish various useful tasks are available. Many of these utilities are available either free or as shareware programs that you can evaluate free and then pay to license if you decide to keep them.

In this chapter, you learn about several such powerful utility programs for DOS; they can help you accomplish more with a DOS-based computer system or even make better use of the DOS command prompt in Windows and OS/2. The following DOS-based utility programs are covered in this chapter:

  • PKZIP and PKUNZIP by PKWare

  • McAfee VirusScan

  • 4DOS by JP Software

Using these programs, you can increase your capability to manage files under DOS; to remain free of computer viruses; to create, manage, and extract compressed file archives; and to make the best use of the DOS command prompt.

Understanding Freeware, Shareware, and Demoware

Programmers write computer programs for many reasons: for fun, for profit, as demonstrations, as self-educational projects, or to solve some computing problem that they have noticed. However, not every program has the commercial appeal of, say, an Intuit Quicken or a Microsoft Word.

Sometimes programmers choose to make their programs available to others free. When they do so, it is understood that the programs are available on an as is basis with no warranty and no support from the programmers if some kind of problem occurs. If the program does something useful for you, that's great. If it doesn't, at least it didn't cost you anything. Note that programs distributed free—often called freeware—usually still carry restrictions that you cannot modify the program in any way and that the programmer's original copyright must be left intact. You are typically also free to give copies to others, although you need to examine each program's copyright notice for details because they vary from program to program.

Some software programmers often choose to sell their creations using an electronic version of a “word of mouth” sales approach called shareware. In this model, people are free to download and try the software for a limited period of time (usually 30 days or so); and then, if they choose to keep the software, they pay the programmer a reasonable license fee. Users are encouraged to pass along shareware programs they like to other people, who also must pay to license the software if they want to keep it. The basic idea is to make software available for sale with much lower selling and distribution costs than traditional software, with both the programmer and user benefiting from the more efficient transaction: The programmer makes more money on each copy sold, and the user pays much less for useful software. Shareware programs are typically sold with some sort of warranty, with support from the maker, and often with other benefits such as free upgrades to newer versions that become available. Note that all these benefits usually accrue only to buyers of the software, not to those who are simply evaluating the programs.

Another form of program is sometimes called demoware. With demoware, the software has been modified so that certain key functions do not work. For instance, a demonstration of a program that generates reports might print only one page of its reports or might print all pages with a prominent notice that the software is unlicensed. (Sometimes software like this is uncharitably called crippleware because key functions are deliberately crippled.) Usually, after a user has paid for a license, the crippled functions are restored, or a properly functioning version of the program is sent to the buyer.

The third-party utilities described in this chapter are, for the most part, shareware. All their functions work properly, although continued use requires that you pay for a copy of the program. The nice thing is that all these utilities are very powerful and useful, easy to get, and inexpensive to purchase if you want to continue using them.

Note

As each program is described, its license terms are noted. However, you should read the appropriate notices for each program—or for any others of this type that you download and use—and comply with them.

PKWare's PKZIP and PKUNZIP

PKZIP and PKUNZIP are programs that can create and read special archive files. These archive files are called Zip files, and they invariably end with the .ZIP file extension. Zip files are special archive files that contain compressed copies of one or more normal files. Because of the compression that takes place for Zip files, Zip files are usually many times smaller than the original files themselves. The PKZIP program creates Zip files, whereas the PKUNZIP program reads files from within a Zip file and places copies on your disk. Two other programs included as part of the shareware version of PKZIP are described in Table 22.1.

Note

You can find PKWare on the Web at http://www.pkware.com/.

Table 22.1. Programs in PKZIP

Program Name Description
PKZIP.EXE Creates Zip files
PKUNZIP.EXE Extracts files from within Zip files
PKZIPFIX.EXE Repairs damaged Zip files
ZIP2EXE.EXE Creates self-extracting Zip files

The PKZIP programs are essential for almost any computer user. They enable you to accomplish many important tasks that you cannot otherwise accomplish with DOS alone, such as the following:

  • Save space on your hard disk by putting infrequently used files into Zip files.

  • Save much time transmitting files to or from other people. Provided both parties have PKZIP, you can spend as little as one-tenth the time transmitting Zip files to another person than if you were sending the actual uncompressed files.

  • Allow large files to fit on a disk when they otherwise do not.

  • Access the many Zip files available for download over the Internet. Zip files tend to be the preferred method for distributing sizable documents and program files.

Note

You can view a quick reference of the parameters for PKZIP.EXE and PKUNZIP.EXE by typing the program names at the command prompt with no parameters.

McAfee VirusScan

McAfee VirusScan is one of the most widely distributed shareware programs in existence. McAfee VirusScan can rapidly scan your computer for viruses, even looking inside documents for macro viruses.

Note

You can download McAfee VirusScan for DOS or for other operating systems from the McAfee home page at http://www.mcafee.com.

McAfee VirusScan is downloaded as a single Zip file that, when extracted using PKUNZIP, results in a main program file and a number of support files. The main program file is called either SCAN.EXE or SCANPM.EXE, depending on which of two possible DOS versions you are using. In a pure DOS environment, you use SCAN.EXE. SCANPM.EXE, on the other hand, is a DOS version intended for use with protected-mode versions of DOS, such as the DOS built into Windows 98 or OS/2.

To run a simple scan of a disk drive using VirusScan, type the program name (SCAN or SCANPM), followed by the drive letter to be scanned. The scan starts immediately, and any detected viruses are reported to you, along with a prompt asking whether you want to repair or delete the infected file.

Unless you use your computer disconnected from all other computers, using only your own documents and prepackaged software, you need to regularly scan your system for computer viruses. They are unfortunately common these days, and they can sit dormant on your system for years until the right circumstances trigger them. When triggered, they can wreak havoc on your computer's programs and data, and can require professional assistance for removal—in addition to possibly causing loss of data. Aside from regularly scanning your system for viruses with a program such as McAfee VirusScan, you also need to make regular backups of your important data, which can help protect you from data loss, regardless of whether it is caused by a computer virus or something else.

4DOS

Quite possibly the best utility program for DOS discussed in this chapter is a program called 4DOS, which actually serves to improve upon DOS in virtually every way conceivable. 4DOS is from a company called JP Software, and it replaces DOS's COMMAND.COM with a much more competent version that contains many powerful features not found in MS-DOS or any other DOS. Versions of 4DOS that can run under Windows 9x/ME, Windows NT/2000, and OS/2 also are available.

Note

On the Web, look for JP Software at http://www.jpsoft.com/.

4DOS doesn't change the behavior of any of the DOS commands you have already learned, but it does add more features to all of them. For instance, the DIR command still works in the same way in 4DOS, but it also accepts a larger number of parameters that enable you to format its output much more flexibly than you can with the DIR command in standard DOS. Furthermore, the TYPE command, which cannot accept wildcards or multiple filenames under DOS, easily does so with 4DOS. Table 22.2 shows the major improvements that 4DOS makes to existing DOS commands.

Table 22.2. Important Improvements to Existing DOS Commands with 4DOS

Command Improvements
CD Accepts more than two periods to move up more than one directory. For instance, CD .... moves up three directory levels.
CLS Enables you to specify colors to be used when the screen is cleared.
COPY Enables you to copy to or from a Clipboard area with the CLIP: device name.
DEL (ERASE) Accepts multiple filenames (list each one separated by a space); accepts attribute masking; accepts an /S parameter to include subdirectories (use with caution); adds wipe capabilities where deleted files are first overwritten with zeros, making recovery nearly impossible.
DIR Adds new formatting options.
MD Adds the capability to create multiple subdirectories at once.
MOVE Adds new options.
ON Allows more flexible processing of ON condition commands.
PAUSE Enables you to display a specified message as part of the PAUSE command.
REN Adds new options.

In addition to extending the functionality of DOS commands, 4DOS adds new commands not available in DOS. For example, you might have been frustrated by the CD command's incapability to change disk drives along with directories. 4DOS contains a command called CDD that enables you to do just that. Or perhaps you have wished for a timed pause for batch files instead of DOS's simple PAUSE command, which waits for a key to be pressed. 4DOS adds a command called DELAY that pauses a batch file for a specified number of seconds. Table 22.3 shows important new commands available in 4DOS that are not generally included with DOS.

Table 22.3. New Commands with 4DOS

Command Description
BEEP Sounds the speaker at a specified frequency for a specified number of seconds
CANCEL Cancels processing of a batch file; returns a specified error code that can be used by ERRORLEVEL processing
CDD Changes the drive letter and directory with one command
COLOR Sets new text colors to be used for text displayed after the command is given, such as in a batch file
DELAY Pauses batch file execution for a specified number of seconds
DESCRIBE Enables you to store long file descriptions, even for 8.3-character filenames
DIRHISTORY Displays a list of directories accessed (pressing Ctrl+PgUp displays a list from which you can choose a directory without using this command)
DRAWBOX Draws a box on the screen; useful formatting for batch file displays
DRAWHLINE Draws a horizontal line at specified coordinates
DRAWVLINE Draws a vertical line at specified coordinates
ESET Enables you to edit environment variables
EXCEPT Enables you to exclude files from processing; for instance, you can use COPY *.* EXCEPT *.TXT
FFIND Searches for specified files
FREE Displays free space totals for disks
GLOBAL Executes a specified command for multiple directories
GOSUB Provides subroutine processing in a batch file
HISTORY Displays a history of commands used
IFF Provides IF-THEN-ELSE processing (DOS provides only the IF command)
INKEY Prompts you for a single key in a batch file
INPUT Prompts you for input in a batch file
KEYSTACK Passes keystrokes to an executed program; can often be used to automate processing in a program that otherwise doesn't allow automation
LIST Displays a scrollable view of a file; far superior to TYPE
LOADBTM Allows batch files with a .BTM extension to run 2 to 10 times faster than normal .BAT files
LOG Saves a list of used commands to a log file
MEMORY Displays the status of system memory
REBOOT Reboots the computer
SCREEN Displays a message at certain coordinates on the screen
SCRPUT Displays text at certain coordinates in a specified color
SELECT Enables you to tag files to be processed by a command
TEE Allows a program to display its output to the screen, simultaneously capturing it to a file
TEXT Enables you to build and display a block of text in a batch file
TIMER Provides a stopwatch; useful for timing commands or building quick-and-dirty performance tests
TOUCH Enables you to set the modify and create times and dates for files
TREE Displays a tree of directories
UNSET Removes an environment variable
VSCRPUT Displays text vertically on the screen

Tip

You can use the various 4DOS drawing commands, along with the color commands, to make professional-looking batch files. Add use of the INKEY and subroutine processing features, and you can construct a simple menu in 4DOS that beats anything you can do in DOS.

Another powerful feature of 4DOS is extended batch file capabilities, including a built-in batch file debugger that enables you to step through batch files and more easily solve problems within them. Add to this the capability to use BTM files that run much more quickly than standard BAT files, along with the powerful batch file commands available in 4DOS, and you can see that you can do much, much more with 4DOS batch files than with DOS batch files.

Note

The added batch file capabilities of 4DOS are truly stunning. They almost (but not quite) give DOS batch files the power of a full programming language. The only drawback is that for them to work, any machine using the enhanced batch file must also have 4DOS installed. If you manage a number of machines, you might want to consider a license to use 4DOS on many machines for just this reason.

If you really want to become a DOS wizard, adding 4DOS to your bag of tricks can take you very far, indeed. The nice thing about 4DOS is that you can start using it without knowing much about it because DOS commands still work the same way. As you come across situations in which you wish DOS had some additional feature, you can open the 4DOS help file and see whether it helps you solve a particular problem. Chances are excellent that 4DOS can help you accomplish many tasks you want to perform in DOS.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.200.109