locked
write fault error writing device PRN in MS-Dos Program on Win 7 RRS feed

  • Question

  • Any thoughts on what could cause a MS Dos program written in MS Fotran to return a "write fault error writing device PRN" error when it works fine on XP machines? Software is installed on a network and runs on a local PC. PC can print from DOS in other apps so LPT capture etc. is not directly suspected. Also tried while logged in with admin rights. Need help with a troubleshooting direction.
    Tuesday, December 7, 2010 4:01 PM

Answers

  • Hi,

     

    Perhaps, you may try to use “Run as Administrator” option. Please refer the following to use the option.

     

    1.    Right-click the Command prompt icon.

    2.    Select “Run as Administrator”.

    3.    Then type your admin account name and password.

     

    Otherwise, you may use XP Mode to run your DOS application or try the Compatibility Mode. Please refer the following steps to use Compatibility Mode.

     

    1.    Right click on the link of the program that you want to fix.

    2.    Click on Properties.

    3.    Click on the Compatibility tab.

    4.    Click on Run this program in compatibility mode and select one of these:

    Windows 95

    Windows 98

    Windows NT 4

    Windows 2000

    Windows XP SP3

    Windows Vista

    5.    Under Display settings, click to select the mode that you think that is necessary for the program to work correctly:

         Run in 256 colors.

    Run in 640 X 480 screen resolution.

    6.    Disable visual themes.

    7.    Click Apply, and then click OK.

    8.    Double click on the program.

    • Marked as answer by Arthur Xie Friday, December 17, 2010 9:28 AM
    Friday, December 10, 2010 8:45 AM

All replies

  • Hi,

     

    Perhaps, you may try to use “Run as Administrator” option. Please refer the following to use the option.

     

    1.    Right-click the Command prompt icon.

    2.    Select “Run as Administrator”.

    3.    Then type your admin account name and password.

     

    Otherwise, you may use XP Mode to run your DOS application or try the Compatibility Mode. Please refer the following steps to use Compatibility Mode.

     

    1.    Right click on the link of the program that you want to fix.

    2.    Click on Properties.

    3.    Click on the Compatibility tab.

    4.    Click on Run this program in compatibility mode and select one of these:

    Windows 95

    Windows 98

    Windows NT 4

    Windows 2000

    Windows XP SP3

    Windows Vista

    5.    Under Display settings, click to select the mode that you think that is necessary for the program to work correctly:

         Run in 256 colors.

    Run in 640 X 480 screen resolution.

    6.    Disable visual themes.

    7.    Click Apply, and then click OK.

    8.    Double click on the program.

    • Marked as answer by Arthur Xie Friday, December 17, 2010 9:28 AM
    Friday, December 10, 2010 8:45 AM
  • 2 years after...

    Share an printer in your computer (PDF printer including)

    Give it an simple share name ex: "printer"

    Use command net use to add the printer as lpt1 port:

    NET USE LPT1: \\"computername"\printer

    Check with command NET USE and must look like this:

    Status       Local     Remoto                    Rede
    -------------------------------------------------------------------------------
    OK           LPT1      \\lenovo\printer          Microsoft Windows Network
    Comando concluído com êxito.


    This help me to solve the PRN error.

    And DOS application can easy print on USB printer

    Sorry my poor english!

    • Proposed as answer by PowerMetal Wednesday, December 18, 2013 2:04 PM
    Wednesday, November 21, 2012 2:48 AM
  • 2 years after...

    Share an printer in your computer (PDF printer including)

    Give it an simple share name ex: "printer"

    Use command net use to add the printer as lpt1 port:

    NET USE LPT1: \\"computername"\printer

    Check with command NET USE and must look like this:

    Status       Local     Remoto                    Rede
    -------------------------------------------------------------------------------
    OK           LPT1      \\lenovo\printer          Microsoft Windows Network
    Comando concluído com êxito.


    This help me to solve the PRN error.

    And DOS application can easy print on USB printer

    Sorry my poor english!

    funciona pefectamente, 1 año despues vengo a encontrar este post y salvaste mi dia :) gracias!

    works perfect, a year later come to this post and you save my day :) thanks!


    Wednesday, December 18, 2013 2:05 PM
  • This has just saved me hours of stressing, thank you Franz
    Saturday, March 5, 2016 10:22 AM