Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!border3.nntp.ams.giganews.com!backlog3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.039 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'windows,': 0.09; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:printer': 0.16; 'subject:windows': 0.16; 'command': 0.22; 'feb': 0.22; 'appears': 0.22; 'bytes': 0.24; 'url:home': 0.24; 'mon,': 0.24; 'recognized': 0.26; 'header:X-Complaints- To:1': 0.27; 'correct': 0.29; 'go.': 0.31; 'file': 0.32; 'skip:c 30': 0.32; 'open': 0.33; 'maybe': 0.34; 'problem.': 0.35; 'but': 0.35; 'charset:us-ascii': 0.36; 'to:addr:python-list': 0.38; 'list,': 0.38; 'pdf': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'dave': 0.60; 'simple': 0.61; 'name': 0.63; 'linked': 0.65; 'panel': 0.68; 'transfer': 0.82; '2015': 0.84; 'angel': 0.91; 'device.': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Printing to printer, windows 7 Date: Tue, 17 Feb 2015 20:41:28 -0500 Organization: IISS Elusive Unicorn References: <54E2AF49.500@davea.name> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-79-219-10.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424223693 news.xs4all.nl 2917 [2001:888:2000:d::a6]:42452 X-Complaints-To: abuse@xs4all.nl X-Original-Bytes: 3789 Xref: csiph.com comp.lang.python:85762 On Mon, 16 Feb 2015 22:02:33 -0500, Dave Angel declaimed the following: >It is a simple problem. All you have to do is send the correct bytes to >a file object that will transfer those bytes to the printer. It's been >a long time since I used Windows, but if I recall, you just open the >device "prn" or maybe "lpt1" and go. > C:\Users\Wulfraed\Documents>copy t.txt prn: "prn:" is not a recognized device. The system cannot find the file specified. C:\Users\Wulfraed\Documents>copy t.txt lpt1: "lpt1:" is not a recognized device. The system cannot find the file specified. And... C:\Users\Wulfraed\Documents>copy t.txt CN3BSFVGP805ZZ: "CN3BSFVGP805ZZ:" is not a recognized device. The system cannot find the file specified. That's the port name associated with my HP printer when looking at the control panel properties. LPT1: appears to be linked to "Quicken PDF Printer" in the port list, but is not available from command line. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/