
Printing text file on postscript printer from NT batch job
Hi Don,
Quote:
> On an NT server, [...]
> Is there a simple way to print a text file report (multiple lines),
> as is, to a postscript printer, without 3rd party software, (unless
> somehow Notepad or Wordpad print can be piggybacked on)?
Actually that is one of the options. If you look into the file types
for "TXT" and "DOC", you will notice the "print" and "printTo"
commands. On my W2K system here they are defined as follows:
TXT, print:
C:\WINNT\system32\NOTEPAD.EXE /p %1
TXT, printto:
C:\WINNT\system32\NOTEPAD.EXE /pt "%1" "%2" "%3" "%4"
and similar for "DOC" just with Wordpad.
Quote:
> Or do I have to wrap some postscript commands around the report, and
> possibly imbed new line characters?
You said "without 3rd party software", but still: I know of two Unix
tools on the net that do that, called "a2ps" and "mpage". You may
want to search for Windows version of these.
so long, benny