Make legacy applications feel at home in Windows XP

Setting up Compatibility Mode manually

If the Compatibility Wizard seems like a lot of work to you, you're right; it is.

But it's foolproof because it enables you to try various settings without saving them.

Saving the settings doesn't occur until the very end, when you have confirmed that the chosen settings work.

If you're a more intrepid type, you can set a program's compatibility settings from the Properties box for its executable file, like so:

  • Right-click the executable file for the program, or any shortcut to it, and choose Properties.

    To get to the executable file, locate it with Windows Explorer (probably somewhere in the Program Files folder). To get to a shortcut for an installed program, look on the desktop or open the Start menu.

  • Click the Compatibility tab.

  • Select the Run This Program In Compatibility Mode For check box and then choose an OS version from the drop-down list (Figure D).


Note about shortcuts
If you set compatibility for the executable file, all shortcuts that point to it will be affected; if you set it for the shortcut only, it will affect the program only when started with that particular shortcut. You could have different shortcuts for different compatibility settings if you chose (although there would be little reason to do so).

Figure D
Windows XP

  • Select any of the check boxes in the Display Settings area as needed for your application.
  • Click OK.

Some programs won't work under Windows XP no matter what you do. For example, some versions of Lotus SmartSuite and some versions of VirusScan will install but won't run after installation. It's worthwhile to check the Web site for the errant program's manufacturer to see whether a patch or update has been posted that will allow the program to install and run under XP.

Running MS-DOS programs in Windows XP

Running an MS-DOS program under XP isn't much different from running one under earlier Windows versions. If it doesn't run correctly with the default settings, you can adjust the settings from the executable file's Properties box.

When you adjust an MS-DOS program's properties, you're creating a Program Information File (PIF) file for it. As you may remember from earlier Windows versions, a PIF file is a shortcut for a DOS program that sets up a compatible environment in which it can run.


MS-DOS default settings
When you double-click the executable file for an MS-DOS program for which you have not specifically set any properties, it uses the file _default.pif, located in the %SystemRoot% folder. If you want to change the default settings for MS-DOS programs, modify the properties for that file rather than for the executable file for a particular application.

Windows 9x included an MS-DOS Mode, which rebooted the system into a true real-mode MS-DOS environment. Windows XP doesn't include thisâ€"it can't because it's not based on the MS-DOS kernel. However, it does provide a host of settings you can adjust to try to make an MS-DOS program work a little better.

Here are some of the settings you can adjust:

  • You can specify an Autoexec.bat and Config.sys file to execute prior to running the program. To do so, from the Program tab, click Advanced and then enter the paths to the desired files in the text boxes provided. By default, all programs use Autoexec.nt and Config.nt, which are both located in the %SystemRoot%\System32 folder (Figure E).

Figure E
Windows XP


Use Notepad
You can directly edit Autoexe.nt and Config.nt in Notepad to change the default settings for all MS-DOS applications.

  • If you're having timing problems with the application, click the Advanced button on the Program tab and select the Compatible Timer Hardware Emulation check box (Figure E, again).

  • On the Memory tab, you can specify a certain amount of various types of memory to be allocated to the application (conventional, XMS, EMS, and so on). This might be useful if the program won't start because it thinks it doesn't have enough memory. Some programs check at startup to make sure that there's a large memory pool available, but Windows XP allocates memory to each program on an as-needed basis; allocating a specific amount of memory here can trick the program into working.

  • If you're having video problems, go to the Screen tab and try deselecting the Fast ROM Emulation check box.

    Figure F).

Figure F
Windows XP

  • By default, MS-DOS programs stop running when they're not in the foreground. If you want the program to continue running in the background when you switch away from it, go to the Misc tab (Figure F) and clear the Always Suspend check box.

  • If the program uses a shortcut key combination that Windows uses, Windows will take precedence and you won't be able to use that key combination in the application. To give the application precedence for a particular key combination, deselect the key combination's check box on the Misc tab (Figure F).

  • If the program terminates with an error when the Windows screen saver tries to kick in, clear the Allow Screen Saver check box on the Misc tab (Figure F).

  • While there's no specific compatibility mode for MS-DOS, an MS-DOS program's Properties box contains the same Compatibility tab as other applications and shortcuts. This might be useful in cases where an MS-DOS program ran successfully under Windows 95 but won't run under Windows XP.

Works for most programs

While not every MS-DOS and older Windows program will run under Windows XP, the vast majority will. The new Compatibility Mode feature goes a long way toward maintaining backward compatibility without unduly crippling Windows XP for more modern applications.

TechRepublic is the online community and information resource for all IT professionals, from support staff to executives. We offer in-depth technical articles written for IT professionals by IT professionals. In addition to articles on everything from Windows to e-mail to fire walls, we offer IT industry analysis, downloads, management tips, discussion forums, and e-newsletters.

©2001 TechRepublic, Inc.

Advertisement

Talkback 2 comments

    What to do when a 16 bit app w ...Tony Cuccia -- 08/02/03

    What to do when a 16 bit app wont work despite running it in compatibility mode?

    I enjoyed your article. Howev ...Jo Anne M. Shields -- 07/03/03

    I enjoyed your article. However, I am having a problem in getting an answer in layman's terms to a question I have. I have purchased XP, but have not installed it as of yet. I have a DOS-based program which I use for invoicing. Unfortunately, the company is no longer in existence. Is there any way that I will be able to run this program on XP? It is on my computer now in Windows 98. I am not especially tech-savvy, but would appreciate any information you could provided. Microsoft won't answer any questions until I install XP. And I don't want to install XP if I can't use my DOS-based program since it was designed for my letterhead.

    Thanking you in advance for any help you can provide.

    Jo Anne

Add your opinion

Latest Videos

Sponsored content

Power Centre - Content from our premier sponsors

Blogs

  • Suzanne Tindal Love me, tender
    Considering how expensive and drawn-out tender processes can be to solve problems that might be very immediate, it's little wonder that the Victorian Police IT department tried to work the tender exemptions system.
  • Array 2009 funding drought rolls on
    For Australian start-ups looking for venture capital, 2009 was a very bad year. 2010 may be no better.
  • Array Can not-so-smart meters help the NBN?
    It was interesting to witness Conroy's recent enthusiasm to spruik the NBN's role in supporting the Smart Grid, Smart City initiative. What a pity that Conroy hadn't yet seen the damning report from the Victorian auditor-general about that state's smart-meter roll-out.
  • More blogs »

Tags

Back to top

Featured