Skip navigation

Environment settings that a batch file sets aren’t working. What should I do?

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.
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish