This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Quick and dirty lpr for text files
- To: gnu-win32 at cygnus dot com
- Subject: Quick and dirty lpr for text files
- From: "John F. Kolen" <jkolen at typhoon dot coginst dot uwf dot edu>
- Date: Fri, 5 Jun 1998 11:18:57 -0500
- References: <199806041440.JAA23083@smtp1.mailsrvcs.net>
The following works well enough from Emacs and the command line (bash or MSDOG)
for basic printing text files to the default printer. It even supports
piping (necessary for emacs).
----------------------- cut here -----------------------
@echo off
if "%1" == "" goto NOFILES
:LOOP
start /m \Windows\Notepad /p %1
shift
if NOT "%1" == "" goto LOOP
goto THEEND
:NOFILES
copy con \Cygnus\tmpprint
start /m \Windows\Notepad /p \Cygnus\tmpprint
:THEEND
----------------------- cut here -----------------------
--
John F. Kolen voice: (850)474-3075
Assistant Professor fax: (850)474-3023
Dept. of Computer Science
University of West Florida
Pensacola, FL 32514
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".