Can't run lpr from python on windows 2012 server

Random832 random832 at fastmail.com
Fri Apr 22 10:26:47 EDT 2016


On Fri, Apr 22, 2016, at 10:15, loial wrote:
> I am reposting this question in a simpler form.
> 
> I can run lpr from the command prompt but not from python
> 
> os.system("notepad") works
> os.system("lpr") does not work. Basically it says lpr is not a known
> program or executable
> 
> Why can I run lpr from the windows command prompt but not from
> python(2.7)

Does lpr.exe actually physically exist in c:\windows\system32 as you
have indicated in the your earlier posts? I.e. if you actually browse
system32 with the file manager will you see lpr.exe? The problem with
your question is that it's not a standard command, so none of the rest
of us have it, which means we're half-blind trying to find your problem.



More information about the Python-list mailing list