View Full Version : Print to File
Larry
June 24th 04, 10:48 PM
I am sending a print stream (text format) to an XP
workstation that has "Print Services for Unix"
installed. I would like to have the XP workstation
accept the print stream in a print queue and print it to
a file. If I set up a printer on the XP workstation
using the FILE port, when I send the print stream to the
XP workstation, I am prompted to specify a file name for
output. I would like to find a way to write to a file
without having to specify a file name each time. It
would be okay to write to the same file name with each
request. It would probably be better to ftp the file,
but I can't ftp to the XP workstation. Any thoughts?
Davide Guolo
June 25th 04, 06:38 PM
Larry,
> I would like to find a way to write to a file
> without having to specify a file name each time. It
> would be okay to write to the same file name with each
> request.
instead to print to the "FILE:" port, add a new local port and name it with
the file name.
Kind regards,
Davide Guolo
--------------------------------------------------------------
Printfil - Windows Printing System for Applications
http://www.guolo.com/printfil
Odbc4All - Connection to ODBC Data Sources for any Application
http://www.guolo.com/odbc4all
--------------------------------------------------------------
Scott
June 28th 04, 05:32 PM
How do you print a file? For example I've printed a doc and sent it to a prn file. How do I print the file name? Print c:\house.prn > USB001 This don't work.
"Davide Guolo" wrote:
> Larry,
>
> > I would like to find a way to write to a file
> > without having to specify a file name each time. It
> > would be okay to write to the same file name with each
> > request.
>
> instead to print to the "FILE:" port, add a new local port and name it with
> the file name.
>
> Kind regards,
> Davide Guolo
> --------------------------------------------------------------
> Printfil - Windows Printing System for Applications
> http://www.guolo.com/printfil
> Odbc4All - Connection to ODBC Data Sources for any Application
> http://www.guolo.com/odbc4all
> --------------------------------------------------------------
>
>
>
Davide Guolo
June 28th 04, 05:32 PM
Scott,
> How do you print a file? For example I've printed a doc and sent it to a
prn file. How do I print the file name? Print c:\house.prn > USB001 This
don't work.
you cannot print it directly to the USB port.
You have to share the USB printer , then you have to map a local LPT port to
it using NET USE (even if it locally connected)
NET USE LPT1: \\my_pc\my_shared_printer
then you can print your file with:
COPY filename.prn LPT1:
At a later time you can remove the redirection with:
NET USE LPT1: /D
Kind regards,
Davide Guolo
--------------------------------------------------------------
Printfil - Windows Printing System for Applications
http://www.guolo.com/printfil
Odbc4All - Connection to ODBC Data Sources for any Application
http://www.guolo.com/odbc4all
--------------------------------------------------------------
Scott
June 28th 04, 05:51 PM
How do you print a file? For example I've printed a doc and sent it to a prn file. How do I print the file name? Print c:\house.prn > USB001 This don't work.
"Davide Guolo" wrote:
> Larry,
>
> > I would like to find a way to write to a file
> > without having to specify a file name each time. It
> > would be okay to write to the same file name with each
> > request.
>
> instead to print to the "FILE:" port, add a new local port and name it with
> the file name.
>
> Kind regards,
> Davide Guolo
> --------------------------------------------------------------
> Printfil - Windows Printing System for Applications
> http://www.guolo.com/printfil
> Odbc4All - Connection to ODBC Data Sources for any Application
> http://www.guolo.com/odbc4all
> --------------------------------------------------------------
>
>
>
Davide Guolo
June 28th 04, 05:51 PM
Scott,
> How do you print a file? For example I've printed a doc and sent it to a
prn file. How do I print the file name? Print c:\house.prn > USB001 This
don't work.
you cannot print it directly to the USB port.
You have to share the USB printer , then you have to map a local LPT port to
it using NET USE (even if it locally connected)
NET USE LPT1: \\my_pc\my_shared_printer
then you can print your file with:
COPY filename.prn LPT1:
At a later time you can remove the redirection with:
NET USE LPT1: /D
Kind regards,
Davide Guolo
--------------------------------------------------------------
Printfil - Windows Printing System for Applications
http://www.guolo.com/printfil
Odbc4All - Connection to ODBC Data Sources for any Application
http://www.guolo.com/odbc4all
--------------------------------------------------------------
vBulletin® v3.6.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.