Speed Up MS DOS Applications for Redirected LPT Ports

ms dosIf you are using any DOS programs in Microsoft Windows NT4/2000/XP DOS sessions/boxes, there are a few things you can do to increase their performance and/or stability. Redirected LPT ports created with Print Manager are not seen by MS-DOS applications. Printing to the LPT port will result in the following error message:

"The system cannot write to the specified device"

The error message may vary depending on the application attempting to print because ports shared in Print Manager are not automatically translated to devices for Virtual MS-DOS Machines (VDM). Windows 16-bit applications that use standard Windows calls to print will work fine. Programs that try to access the port directly via a device name (LPTx) will be unable to print.

These tips are applied by using the respective DOS program's PIF (Program Information File) Editor :

  1. Right-click on the "[Shortcut to] MS-DOS Program" of your choice -> select the Properties tab -> and then:
  2. Click the Screen tab -> check the "Full-screen" box if your DOS application's video speed/screen redraw is slow when running in windowed mode.
  3. Click the Program tab -> uncheck the "Windows NT" box, unless it is required by your DOS program to run properly.
  4. Click the Program tab -> uncheck the "Compatible Timer Hardware" box, unless required by specific DOS programs that access the computer CMOS timer to function.
  5. If DOS programs running in windowed mode seem to freeze (pause) periodically -> click the Misc tab -> disable the "Idle Detection" box.
  6. If your DOS program allows printing -> select LPTx as Printer port (replace x with your printer port number, usually LPT1), because most DOS apps access the printer hardware (through Int17 hex) directly this way.
  7. Finally, click OK/Apply to save the new PIF settings.

If connected to a network, and would like your DOS applications to be able to print to a network printer, add this command line to the batch file used to start your DOS program, or type this into a DOS box before running your DOS app:

NET USE LPTx: \\ComputerName\ShareName /PERSISTENT:YES


Capture for MS-DOS Command Prompt, see below :

ms dos


Remark :
Replace "x" with the printer port number, "ComputerName" with your computer name and "ShareName" with your shared name for the specific network you are logging into... and don't type the quotes.

It's work for me....good lucky for you...

For more detail information about article, you can read here
For more detail information about of Microsoft Help and Support, you can read here

Share on Google Plus

About Author's

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

1 Comments:

  1. Hello to every , because I am actually keen of reading this weblog's post to be updated on a regular basis. It contains pleasant material.

    Here is my webpage - diets that work fast for women

    ReplyDelete