Mail Archives: cygwin/1998/06/06/22:27:33
> John F. Kolen (jkolen AT typhoon DOT coginst DOT uwf DOT edu)
> Fri, 5 Jun 1998 11:18:57 -0500
>
>
>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 -----------------------
>
Actually, as long as we're tossing batch files around, the following
batch file is even quicker and dirtier:
----------------------- cut here -----------------------
@echo off
if "%1" == "" goto NOFILES
:LOOP
copy %1 lpt1
shift
if NOT "%1" == "" goto LOOP
goto THEEND
:NOFILES
copy con lpt1
:THEEND
----------------------- cut here -----------------------
The only problem with this batch file is that it does not work for
network printers, which was the reason I originally wrote print.c.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -