Setting the stage for legacy applications in Windows XP

By Faithe Wempen, Special to ZDNet Asia
Thursday, August 15, 2002 12:00 PM

Setting the stage for legacy applications in Windows XP
Page 2 of 2

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.

Note
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 B).

    Figure B


    Note
    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 B).
    • On the Memory tab, you can specify a certain amount of various types of memory to be allocated to the application (conventional, XMS, EMS). 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.
    • If youÂ’re having problems with the mouse pointer, go to the Misc tab and turn on Exclusive Mode for the mouse (Figure C).

    Figure C

    • 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 C) 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 C).
    • 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 C).
    • 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.

    Conclusion
    YouÂ’ve learned how to set up Compatibility Mode for an application both manually and with a wizard, and how to configure MS-DOS program settings for best performance under Windows XP. Not every MS-DOS and older Windows program will run under Windows XP, but 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.
     Previous 1 2 

  • WORTHWHILE?

    0

    0 votes
    Blog

    Talkback 4 comments

    I have MS-Dos executable program compiled in Clipper5.3. It was running perfectly in NT4.0 but it is not running at the first attempt in XP. To run this program I have to create a batch file then type the executable file name twice or in the command prompt, have to enter the file name twice. I tried all the options with config.nt, autoexec.nt, hardware emulation and the compatibility options but issue remain same. Can anyone help me?
    Posted by MTN Networks on Wednesday, October 02 2002 06:37 PM

    Hi, When I use Rapid File v1.2 with Windows XP/2000/NT, the processor is fully used (100%). Is there any solution to remedy to this problem? Is there any MS-Dos emulator for Windows XP? Thank you. Regards. Yves CORRE
    Posted by Yves CORRE on Friday, April 25 2003 01:37 AM

    Hi, When I use Rapid File v1.2 with Windows XP/2000/NT, the processor is fully used (100%). Is there any solution to remedy to this problem? Is there any MS-Dos emulator for Windows XP? Thank you. Regards. Yves CORRE
    Posted by Yves CORRE on Friday, April 25 2003 01:37 AM

    How would a person install a windows 95/98 game for pc on windows xp? It keeps telling me windows 5.1 is running and the product demands windows 95/98. Thanks
    Posted by Rob Smith on Sunday, September 14 2003 03:40 PM


    • Enterprise 2.0

      Vince Casarez, vice president of product management at Oracle, explains how Web 2.0 technologies, such as tags, wikis, and mash-ups, can be applied within an organization.
      Play video


    • Nehalem Architecture

      What makes next-generation Intel® Microarchitecture (Nehalem) such a superior successor?
      Play video

    Create your own yum repository

    Open Source

    Learn how to create your own yum repository with the createrepo tool. One thing it allows you to do is distribute specialized packages within an organization.


    Read more »


    Unnecessary distraction

    Blog thumbnail

    If not for the weird story that President Arroyo underwent a breast implant operation in a local hospital, I’m pretty sure the heat and public ridicule would not have abated..... by Melvin G. Calimag

    Read more »

    Tech Jobs Now!

     
    Technology and growth at mid-sized companies
    Learn how you can make intelligent use of ICTs to gain a competitive advantage in your industry.


    » Download the EIU report now



    Manage you IT infrastructure with greater ease
    Consolidate IT resources into a single environment.
    » Ultimate virtualization blade
    » Scalable SAN solution
    » Accelerate service delivery

    Tags

    1. antivirus
    2. apple ipod
    3. apple macintosh
    4. cnet networks inc.
    5. desktop
    6. e - mail
    7. hard drive
    8. intuit inc.
    9. microsoft corp.
    10. microsoft windows
    11. microsoft windows vista
    12. norton co.
    13. operating system
    14. pc
    15. performance
    16. security
    17. software
    18. tool
    19. web
    20. web site