Site hosted by Angelfire.com: Build your free website today!
Chapter 39: Running DOS Programs and Commands

PreviousChapterContentsGlossaryNext

Installing and Configuring DOS Programs

DOS provides no standard way to install programs. Most DOS programs include a simple installation batch file that copies the program's files from the installation disks to your hard disk. Once a program's files are installed, you can create shortcuts to the executable file and put those shortcuts in the Start menu, on the desktop, or both, just like native Windows applications (see Chapter 2 for how to create shortcuts).

Since some DOS programs require that you install DOS drivers, Microsoft has included basic drivers for both sound cards and CD-ROM drives. These are loaded when Windows starts through lines in the Config.nt or Autoexec.nt files. For certain DOS programs, you may need to make changes to these files.

If you have a DOS program (or an older Windows program) that doesn't run properly under Windows XP, you can create revised copies of the Autoexec.nt and Config.nt files for use with the program and edit the properties of the program file (or a shortcut to it) to refer to the Autoexec and Config files you created. This method works if the documentation for the program specifies the lines that the Autoexec.bat (old name for Autoexec.nt) and Config.sys (old name for Config.nt) files need to contain. Follow these steps:

  1. In an Explorer window, locate C:\Windows\System32\Config.nt and C:\Windows\System32\Autoexec.nt (if Windows is stored on another drive, substitute the drive letter for C).
  2. Select each file (Config.nt and Autoexec.nt) and press CTRL-C and then CTRL-V to place a copy of the file in the same folder.
  3. Scroll down to the bottom of the list of files to find the copies. Select a file and press F2 to rename it. Name the copies Config.ext and Autoexec.ext, where ext is an abbreviation for the program you are configuring.
  4. Right-click the program file or shortcut and choose Properties from the menu that appears. You see the Properties dialog box for the file or shortcut (described in the previous section).
  5. Click the Program tab, which displays the name of the program file that the shortcut runs. Click the Advanced button to display the Windows PIF Settings dialog box:

[image]
  1. Change the contents of the Autoexec Filename and Config Filename boxes to the pathname of the file you created earlier. (If they are in the same folder as the Autoexec.nt and Config.nt files, change only the filename at the end of the pathname.) As you edit the filename, Windows shows you matching filenames.
  2. If the program needs for the system clock to appear to run slower (that is, if it uses the computer's system clock for timing, and modern PCs make the program run too fast to be usable), select the Compatible Timer Hardware Emulation check box.
  3. Click OK to return to the Properties dialog box for the shortcut.
  4. For DOS programs that display information in the Command Prompt window, click the Font tab and choose a font size that looks good.
  5. If the program uses expanded or extended memory, click the Memory tab and set the memory sizes, as described in the section "Controlling the Amount of Memory the Program Can Use" earlier in this chapter.
  6. If you want the program to appear full-screen rather than in a window, click the Screen tab and choose Full-screen.
  7. If the program needs to run in compatibility mode, so that Windows provides a software environment like a previous version of Windows, click the Compatibility tab, select the Run This Program in Compatibility Mode For check box, and select the version of Windows.
  8. Make any other changes to the properties of the file or shortcut, and then click OK to save your changes.
  9. Refer to the program's documentation and make whatever changes it suggests to the Autoexec and Config files you created for the program. When the manual or help file refers to the Autoexec.bat file, make the change to your copy of the Autoexec.nt file. When instructions refer to the Config.sys file, make the changes to your copy of the Config.nt file.
  10. Test your changes by running the files or shortcut.

tip If you want to see messages that let you know what Windows is doing when it processes your Config or Autoexec file, add the single word echoconfig as the last line of the file.

PreviousChapterContentsGlossaryNext