“其他”ntp 的文档(HP/Epson 打印)

oct*_*bus 6 windows-server-2008 printing hp

直到今天下午,我才知道ntp是网络时间协议。但是安装在我们的 Windows 2008 服务器上的是一个不同的 ntp,如下所示,带有ntp -?.

我正在寻找超出帮助的文档。我想向打印机发送双面命令。

任何想法或指向文档的指针将不胜感激。例如,如果您将其-@视为第一个选项,我们的 MUNIS 打印将使用这些文件。我想知道这些命令是什么。它们并非特定于 MUNIS。它们是打印机的特定命令。我在这篇文章的末尾添加了一个示例文件。

C:\Windows\system32>ntp -?
v1.09 Usage: piped_data | ntp.exe -dPrintDevice <options> <InputFile>

                 (Epson)                                    (Default)
-@ <options file>:   File containing (these) option settings:
-d <printer>     :   Name of printer, ex. '\\svr\hplaser'   :
-r <filename>    :   Redirect output to file (PCL format)   :
-n <# copies>    :   Number of copies                       :  1
-o <orientation> :   P=Portrait  L=Landscape                :  P
-l <lpp>         :   Lines per page                         : 66
-i <lpi>         : * Lines per inch                         :  6
-v <VMI>         :   Vertical Motion Index                  :  7.2
-m <top margin>  :   Top margin                             :
-z <point size>  :   Point Size (font height)               : 12
-s <spacing>     : * 0=Fixed  1=Proportional                :  0
-p <pitch>       : * Character per Inch                     : 10
-e <left margin> : * Left margin                            :
-b <bin>         :   0=Current 1=Main  2=Manual  5=Lg tray  :  0
-t <typeface>    :   0=Line Ptr  3=Courier  4101=TimesRoman :  3
-y <sym set>     :   8U=Roman-8  0B=Line Draw  0O=OCR-A     : 8U
-w <stroke wt>   : * 0=Medium  3=Bold                       :  0
-u <setup string>: * Override built-in setup, ex. '\033E'   :
-f               : * Append FormFeed (eject) at document end:
-q               : * Debug flag, shows escape codes on scrn :
-x <emulation>   :   H=HP Laser, E=Epson FX, R=Raw mode     :  H


Default emulation is HP PCL-5.  Use '-x E' for Epson FX.

Options file format (-@ flag):
        Options file settings OVERRIDE the same option on command line.
        Enter only 1 option per line.
        Any line not starting with '-' or '/' is ignored (comment).

Examples:
        *--- Using pipe, landscape, 132 col, 66 lpp, to hp4.
             dir | ntp -d hp4 -l 66 -v 5.45 -p 13 -o L

        *--- Same as above, only using options file with 1 option per line.
             dir | ntp -@ hp4land.ntp

        *--- Using file, portrait, 80 col, 66 lpp, to \\server\hp4.
             ntp -d \\server\hp4 myrpt.txt

A space after flag is not required, -p10 or -p 10 are both ok.
Run Code Online (Sandbox Code Playgroud)

ls.ntp 与-@ <options file>.

# LS.NTP
# NTP.exe options file to setup for 'ls' mode

# Set landscape mode
# Set pitch condensed landscape mode 13.0
# Set VMI landscape mode 15.45
# Set Left Margin to 3
-o L
-p 13.0
-v 5.45
-e 3
Run Code Online (Sandbox Code Playgroud)

鉴于文档中提到了 HP 和 Epson,我无法判断本地安装的 ntp.exe 是严格意义上的供应商创建还是 HP 实用程序的一部分。

小智 1

它似乎是 Windows NT 打印服务器的远程打印队列控制 CLI。以下是 1996 年雅虎群组中提到的内容:http://tech.groups.yahoo.com/group/lprng/message/1800

不幸的是,他们没有指定它来自哪里或任何文档,但这也许使讨论更加清晰。