Redirecting Print Screen Output for 16-bit DOS Applications

Last reviewed: October 16, 1997
Article ID: Q140399
The information in this article applies to:
  • Microsoft Windows NT Workstation versions 3.5, 3.51 and 4.0
  • Microsoft Windows NT Server versions 3.5, 3.51 and 4.0

SUMMARY

When you press the Print Screen key at the MS-DOS Command Prompt or in a DOS application window under Windows NT, the screen contents are copied to the clipboard. If you want to redirect the screen contents from a 16-bit MS-DOS application to your printer, you must configure either the Program Information File (PIF) file or the shortcut so that Windows NT ignores the Print Screen key while the application is running.

MORE INFORMATION

To redirect the screen contents of a 16-bit MS-DOS application to your Printer, perform the following steps:

Windows NT 3.51

  1. Run the PIF Editor (Pifedit.exe).

  2. For Program Filename, enter the full path of Command.com. For example:

          %SystemRoot%\System32\Command.com
    

  3. Click Advanced.

  4. Select the PrtSc check box in Reserve Shortcut Keys, and then click OK.

  5. Click Windows NT.

  6. Make sure that the full path of the Config filename is correct. By default, the full path is:

          %SystemRoot%\System32\Config.nt
    

  7. Click OK.

  8. Save the PIF.

  9. Using a text editor, such as Notepad, add the following line to the Config.nt file and save the file:

          shell=%SystemRoot%\System32\Command.com
    

  10. Run the PIF.

NOTE: This procedure allows you send Print Screen contents to your printer for all 16-bit MS-DOS applications. If you want this to work for one 16-bit MS-DOS application, create another Config file and enter the full path of the file in step 6 above. This works with Command.com and does not work with Cmd.exe.

Windows NT 4.0

  1. Create a shortcut to the DOS application.

  2. Right-click on the shortcut, and then select Properties.

  3. Click the Misc tab.

  4. Click to clear the PrtSc check box.

  5. Click OK.

If you have a locally attached printer, you should now be able to launch the DOS application using the shortcut and use the Print Screen key to print locally. If you are using a network printer, you have to redirect the printer output to the network printer using the following command at a MS-DOS command prompt:

   NET USE LPT1: \\<server>\<printer_sharename>


Additional query words: prodnt vdm PrintScrn PrintScreen PrntScrn
Keywords : nt16ap ntprint NTSrvWkst kbprint
Version : WinNT:3.5,3.51,4.0
Platform : winnt


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 16, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.