8-BIT or 16-BIT DOS in XP?

Posted on 2004-11-15
Last Modified: 2008-01-09
I work for an established printing company.

The software we have used to design or buisness forms and have trusted for years ran under DOS.
With "dos" being "gone" in Windows2000 and XP. We seem to be heading towards a software train-wreck when
the systems here need to be replaced.

I'm the admin here and am currently placing band-aids on these machines to keep our design
department creating forms in Windows98se.

I know sson enough we are going to need to replace these systems and HAVE to go with new systems running 2000 or XP.

As for the application. I ahve tried it on both 2000 and XP. It runs and physically opens DOS...not in a dos-shell but DOS....runs for about 3 minutes and crashes.

Any ideas?
Question by:nurv-x
    LVL 41

    Accepted Solution


    Troubleshooting MS-DOS-Based Programs in Windows

    View products that this article applies to.

    This article was previously published under Q314106

    For a Microsoft Windows 2000 version of this article, see 165214.


    This article describes how to troubleshoot MS-DOS-based programs in Windows.


    Test the Ntvdm Subsystem

    The first thing to test when you are having problems with MS-DOS-based programs is the Windows Virtual DOS Machine (NTVDM) subsystem. You can use the utility to test whether the NTVDM subsystem is running properly. To start, follow these steps:

    Click the Start button, and then click Run.

    In the Open box, type, and then click OK.

    This should start a command prompt window. If this does not work properly, then there is a problem with the NTVDM subsystem, and you should check the following items:

    ·      Check the Config.nt and Autoexec.nt files in the SystemRoot%\System32 folder for non-standard settings.

    Use a REM statement to remark out all entries except the following default entries:



       dos=high, umb





       lh %SystemRoot%\System32\Mscdexnt.exe

       lh %SystemRoot%\System32\Redir

       lh %SystemRoot%\System32\Dosx

       lh %SystemRoot%\System32\Nw16 (only if CSNW is installed)

       lh %SystemRoot%\System32\Vwipxspx (only if CSNW is installed)


    Another way to accomplish this is to expand Autoexec.nt_ and Config.nt_ from the Windows CD-ROM to the %SystemRoot%\System32 folder.

    ·      Press CTRL+SHIFT+ESC to start Task Manager, close all running programs that are running, and make sure that there are no other NTVDM processes running.

    ·      Prevent all programs from running at startup. Programs can run from three places at startup: the Startup groups, the Run and RunOnce lines in the registry, and the "run=" and "load=" lines in the Win.ini file. You can check these places as follows:

    The Startup groups are folders on the local hard disk. They are in the following locations:

    ·      %SystemRoot%\Profiles\user_name\Start menu\Programs

    ·      %SystemRoot%\Profiles\Default user\Start menu\Programs

    The Run and RunOnce lines are in the registry, under the following registry key:


    You can edit the Win.ini file by using Notepad. The Win.ini file is in the %SystemRoot% folder.

    ·      Examine the NTVDM system files in the %SystemRoot%\System32 folder. Check the following files and make sure that they are the correct version by checking the size and date:




       Ntvdm.dll (Windows NT 3.1 only)



    ·      The registry entries that are associated with the NTVDM subsystem are:

    ·      HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment

    This key stores the environment variables from the Config.sys and Autoexec.bat files for use in Windows.

    ·      HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ VirtualDeviceDrivers

    This key stores the device drivers that are used in an NTVDM session. Windows Setup creates these entries when a device driver is installed.

    Check Program-Specific Issues

    The following functions do not work in Windows XP:

    ·      All MS-DOS functions except task-switching API (application programming interface) functions are supported.

    ·      Block mode device drivers are not supported. Block devices are not supported, so MS-DOS I/O control (IOCTL) APIs that deal with block devices and SETDPB functions are not supported.

    ·      Interrupt 10 function 1A returns 0; all other functions are passed to read-only memory (ROM).

    ·      Interrupt 13 calls that deal with prohibited disk access are not supported.

    ·      Interrupt 18 (ROM BASIC) generates a message that says that ROM BASIC is not supported.

    ·      Interrupt 19 does not restart the computer, but cleanly closes the current virtual DOS machine (VDM).

    ·      Interrupt 2F, which deals with the DOSKEY program callouts (AX = 4800), is not supported.

    ·      Microsoft CD-ROM Extensions (MSCDEX) functions 2, 3, 4, 5, 8, E, and F are not supported.

    ·      The 16-bit Windows subsystem on an x86 computer supports enhanced mode programs; it does not, however, support 16-bit virtual device drivers (VxDs). The subsystem on a non-x86 computer emulates the Intel 40486 instruction set, which lets the computer run Enhanced-mode programs, such as Microsoft Visual Basic, on reduced instruction set computers (RISC).

    This means that Windows does not support 16-bit programs that require unrestricted access to hardware. If your program requires this, your program will not work in Windows NT, Windows 2000, or Windows XP.

    You should next check to see whether the Autoexec.nt and Config.nt file settings are correct. Always try the default settings that are listed earlier in this article. Some programs require special settings or drivers to run in the Config.sys or Autoexec.bat file. If this is the case, there are two options for initializing these files when you starting your program:

    ·      Enter these lines in the Config.nt and Autoexec.nt files in the %SystemRoot%\System32 folder.

    ·      Create new Config and Autoexec files to be run when starting this program. To do so, follow these steps:

    Create the files and save them with the extension .nt in a folder other than %SystemRoot%\System32 (these files are usually saved in the same folder as the program).

    Right-click the desktop, point to New, and then click Shortcut.

    In the Type the location of the item box, type the full path to the file that you want to run, and then click Next.

    In the Type a name for this shortcut box, type the name for the shortcut, and then click Finish. This creates a new shortcut on the desktop.

    Right-click the new shortcut, and then click Properties.

    On the Program tab, click Windows to open a dialog box for the path to the Autoexec and Config files.

    Type the full path to the files that you created, and then click OK in both dialog boxes.

    Clicking this icon runs the Autoexec and Config file specified for the program. These settings are subject to the same restrictions as those listed for MS-DOS-based programs.

    There are other settings in a program's properties. If your program is not working properly, check all of the tabs and make sure that the program settings are set to the manufacturer's specification. If the program is still not working, contact the vendor of the program to make sure that the program is supported under Windows.

    For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base:

    171940 MS-DOS Application I/O Operations Cause Floppy Drive Access

    102418 NTVDM Error: There Is No Disk in the Drive

    156687 Entries in CONFIG.NT or AUTOEXEC.NT May Cause NTVDM Errors

    142026 Err: 'Hidden Console of WOW VDM' Running 16-bit or DOS App

    The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

    The information in this article applies to:

    ·      Microsoft Windows XP Home Edition

    LVL 41

    Expert Comment

    another suggestion would be to try virtual PC
    LVL 5

    Assisted Solution


    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Suggested Solutions

    Most of the time we are in fix when all of sudden our systems behave weirdly.  Such problems cost time and effort... so it's best to take some preventive actions so that we can avoid such issues or overcome such problems more easily. Preventive M…
    We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now