|
From: Luigi S. <gi...@li...> - 2002-10-12 02:55:15
|
At 10.35 10/09/02 -0700, Samuel Keding wrote:
>okay,
>
>I got another one for you. I thought windows would
>create a file named LPT1 and put it in the directory
>where I ran the .exe file. It didn't. I changed the
>file name to USB1 and looked again. There was a file
>named USB1 in the same directory as my .exe file.
>When I write LPT1 though and run the .exe file, I have
>to stop the program by going through ctrl alt del.
>Nothing is ever printed, no file made, or if it is I
>don't know where it is going. I'm confused. Here is my
>source if it will help.
>...
Hello, Samuel
Try the following:
- open a Dos box
- log somewhere where you have a text file (for instance your source code)
- try to "copy" the text file on the printer ("copy foo.txt LPT1")
If the above works, then you are likely to print by opening the file named
"LPT1" (or "PRN") and writing to it as you would do to a regular file.
I can't test the solution I'm suggesting, because I have a sort of "Windows
printer", that is: I am allowed to print using "notepad" print command, but
if I try to "copy" something to the printer, using a Dos box, nothing
happens, I've been told that this is because some (cheap?) printers aren't
smart enough and need Windows to work.
--
gisan
|