A. When you run a batch file (or any DOS command without a program information file—PIF—setting), the system uses the _default.pif file in the %systemroot% directory. If the Close on exit setting is enabled, the batch process will close. To fix the problem, perform the following steps.

  1. Start Windows Explorer.
  2. Go to the %systemroot% directory (e.g., d:\winnt).
  3. Right-click _default.pif.
  4. Select the Program tab.
  5. Clear the Close on exit checkbox.
  6. Click Apply, OK.