Overview of Performance Monitoring

Previous Topic Next Topic

Monitoring MS-DOS Applications

In Windows 2000, each MS-DOS application runs in its own NTVDM process, eliminating some of the problems encountered in 16-bit Windows applications. All of the NTVDM processes are called Ntvdm.exe by default, but you can use the following procedure to change the name for easier tracking.

To create a new process name for an NTVDM process

  1. Copy Ntvdm.exe to a file with a different name.
  2. Change the value of the cmdline entry in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WOW to the name of your copy of Ntvdm.exe. The default value is systemroot\System32\Ntvdm.exe.
  3. When you start an MS-DOS application, it will run in a process with that name. Figure 5.16 shows how your edited process name appears in Regedt32.
Figure 5.16    New Process Name in Regedt32
Enlarge figure

Figure 5.16 New Process Name in Regedt32

Tip

You do not have to restart the computer for the registry change to take effect. Thus, you can change the registry between starting different MS-DOS applications and have each start in a uniquely named process. It is also prudent to set the process name back to Ntvdm.exe when you are finished.

If you are not satisfied with the performance of your MS-DOS-based applications in Windows 2000, try changing the following settings, accessed by right-clicking the file in Windows Explorer:

© 1985-2000 Microsoft Corporation. All rights reserved.