Easiest way to print from XP/DOS.
Tim Golden
tjgolden at gmail.com
Sat Dec 30 03:19:32 EST 2006
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
More information about the Python-list
mailing list