Re: Easiest way to print from XP/DOS.
- From: "Tim Golden" <tjgolden@xxxxxxxxx>
- Date: 30 Dec 2006 00:19:32 -0800
jim-on-linux wrote:
The utility creates a text file that is sent to
the printer with the statement below.
os.system('type ' +FileName+ ' >prn'),
and the file prints.
But, from an xp machine if I try to print using
the same statement, I get a question on the dos
screen which reads something like this;
Which program authorized this operation?
Since I don't have an xp machine, the statement
above may not be exact, but you get the idea.
You might want to look at this for some more
conventional approaches to printing under
windows:
http://timgolden.me.uk/python/win32_how_do_i/print.html
Specifically, I think you want the second option.
TJG
.
- References:
- Easiest way to print from XP/DOS.
- From: jim-on-linux
- Easiest way to print from XP/DOS.
- Prev by Date: Re: Easiest way to print from XP/DOS.
- Next by Date: Re: Why does Python never add itself to the Windows path?
- Previous by thread: Re: Easiest way to print from XP/DOS.
- Next by thread: Re: PEP 3107 Function Annotations for review and comment
- Index(es):