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!