Prompt if Cant Write to LPT1
Results 1 to 9 of 9

Thread: Prompt if Cant Write to LPT1

Threaded View

  1. #1
    Join Date
    Jun 2000
    Posts
    332

    Prompt if Cant Write to LPT1

    Hi,

    I wanna include this lines in the autoexec.bat file:

    @echo ff
    copy test.txt lpt1


    What this txt file does is to reconfigure the printer's setting. It will set the paper size to A4.

    Now, I got a problem here. The file updates the printer at boot time. But sometimes, the users do not turn on the printer. And then the error will be shown saying

    Write fault error writing device LPT1
    Abort, Retry, Ignore, Fail?

    How do I program in such a way that if the above error appears, another message also shows telling user to turn on the printer, if they have not done so. Something like this:

    Please turn on printing device.
    Write fault error writing device LPT1
    Abort, Retry, Ignore, Fail?

    Thanks!
    Last edited by topdome; March 11th, 2003 at 01:20 AM.
    EveryONe I daTe alw@ys turns out to be sUCh a cyborg.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •