Hard as it is to believe, there are times when it makes sense to run plain old MS-DOS. Games are usually not the reasonmost games that were designed back in the DOS days aren't able to cope with the blazing speed of today's processors. However, some people still have a need to use specialized hardware that works only under DOS, such as industrial control and hardware programming systems. The software for these devices often won't work when run from an XP Command Prompt window, because Windows won't give it the direct access to hardware that it needs. So, for occasional use, you may want to run MS-DOS to perform specialized tasks. NOTE In this section, I'm going to talk about ways to boot your computer under DOS, so that Windows isn't running at all. You might be able to run your MS-DOS program in an emulator, that is, a program that mimics a PC running DOS. This may let you run games and old DOS software without going to the trouble of booting up DOS itself, but probably won't help you with old hardware issues, unless you can extend the emulator, (The open-source DOSBOX emulator could be a candidate for extension.) For a discussion of emulators, see the end of this chapter. If your computer is set up to multi-boot to Windows 95 or 98, it's easy to get to plain MS-DOS. You can press F8 while one of these versions is booting and select the "Command Prompt" mode. Alternately, with Windows 95 or 98 running, you can click Start, Shutdown, Exit to MS-DOS. If Windows 95 or 98 aren't available, you'll have to install a version of DOS on your computer. The procedure you'll need to follow depends on what version of DOS you want to install. If you have a boot diskette from a version of Windows 95 or 98, its version of DOS supports FAT32 partitions. In this case, you can install it on a new partition or on an existing FAT32 partition, even if it's the partition from which XP boots. Use either of the two procedures that follow this section. NOTE You must install DOS in a partition on the first physical drive (Drive 0) in your system. It must be installed in a Primary (not logical) partition. If you have only DOS 5 through 6.22, you'll need to install it on a FAT16 partition, because these older DOS versions can't read the FAT32 format. It's best if this is a small partition set up expressly for this purpose. You can't install Windows XP on a FAT16 partition. Other OSes will be able to see this partition, and copy files to and from it, so the partition only needs to be big enough to hold DOS, the DOS applications you need, and the data files. 40MB is probably enough, although your application may need more, and remember that DOS can't handle partitions larger than 2048MB. Use only the first of the two installation procedures that follow this section. CAUTION Windows XP can't format a FAT16 partition. To format the partition you'll need to use the FORMAT program that comes with DOS. If you create the partition with the DOS FDISK program, be very careful not to delete any existing partitions. In particular, if you've already installed XP, be extremely careful if you use MS-DOS Setup diskettes to install DOS. The Setup program will overwrite the partition information for the first drive it finds, and could blow your Windows XP partition out of the water. Your best bet is to use the setup program's Install to Floppy Disk option, and then copy the program and system files to the hard drive later. Create a bootable DOS disk partition by following one of the two following procedures. The procedure depends on whether the partition is the one from which Windows boots or not. Installing MS-DOS on a Non-Boot PartitionTo set up a FAT16 partition (for any version of DOS) or a FAT32 partition (for the Win95/98 versions of DOS) that no other operating system boots from, follow this procedure:
You should now be able to restart your computer and select MS-DOS. Once it's running, set up an autoexec.bat file and a config.sys file. The config.sys file should have at least the following: device=X:\DOS\himem.sys device=X:\DOS\emm386.exe files=99 with additional commands to load a CD-ROM device driver, if necessary. Autoexec.bat should have at least @echo off path X:\DOS prompt $p$g smartdrv with additional commands to load a mouse driver, and the CD-ROM extensions mscdex.exe, if needed. Installing MS-DOS on the Windows XP Boot PartitionIf your only option is to install MS-DOS on a FAT32 partition from which Windows XP boots, be sure you have a Windows XP installation CD and that you can successfully boot from it. You must use the DOS version from Windows 95 OSR2 or 98. Follow these steps:
|