7 replies
by joseph moore
Map you LPT1 port to a printer, then whenever you do a command prompt command that generates screen text, just add the >LPT1.
For example to map the LPT1 port to a printer:
NET USE LPT1 \\SERVER\SHAREDPRINTER /persistent:yes
The above maps the port to a printer and makes the mapping persistent, so it maps again the next time you log on.
Then, do this:
c:\winnt>dir >LPT1
That will redirect the screen text to the LPT1 port, which will print it to the printer you mapped to.
Or you can just redirect the screen text to a file, and print the file out later:
c:\winnt>dir >printfile.txt
All directories are just an example. Works from any directory, including mapped network shares.
Hope this helps.
by ð
by frobo
Hi,
mention anwser 1 and copy the file you want to printed out to the lpt port:
copy %winbootdir%\system32\repl\import\scripts\login.cmd ltp1:
regards
Frobo
by ð
by maz1980
I usually use this command:
type > lpt1
If you have more then one printers, maybe you should use other than lpt1, maybe lpt2 or lpt3. Check your printers configuration.
If you want to print non-text file, you should print the file to a file for the appropriate printer on the appropriate application, example MS Word for doc file. Select "print to file" option on the application to make prn file, the file which will you send to the printer.
Note, not all printers can work with this method of printing, I have failed to this to a lower-end Canon printer.
by ð
by ð
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending