
print postscript file from command line in window
Original message:
Quote:
>in unix, i can call lp <filename>.ps to send a postscript file to the
>printer. is there a equivalent command
>in window that i can send a postscript file to printer from the dos prompt?
>without installing ghostview?
You may want to try the freeware program PrintFile, available in version
2.1.4 from its homepage http://hem.passagen.se/ptlerup/prfile.html (and in
many other places, of course).
The DOS commands "PRINT ..." and "COPY /B ... PRN" require an LPT port to
send the file to. For non-local printers, you need to establish a fake LPT
port. For Windows "Network" printers, this can be achieved in several ways,
the simplest of which is probably via the context menu in "Network
Neighborhood". Unfortunately, there doesn't seem to be a way to address
"Other" Windows printers (including TCP/IP network printers) as LPT ports.
In PrintFile "Settings", you can chose _any_ available printer just as you
do in other Windows applications. Anyway, you must make sure that "Show
printer selection dialog" is deactivated, otherwise printing from the
command line will not work the way you want it to. Now you can print from
the command prompt or from a batch file using "whatever_path\prfile32.exe
anyfile.ps". (If you don't like the PrintFile window to appear, you may
optionally include "/q" on the command line.) For a full description
including many advanced features (like n-up printing) see the help file.
Michael Hemmer