windows-server-2008 – “其他”ntp文档(HP / Epson打印)

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

我正在寻找帮助以外的文档.我想向打印机发送双面打印命令.

任何有关documnentation的想法或指示将不胜感激.例如,如果你看 – @作为第一个选项,我们的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,to \\server\hp4.
             ntp -d \\server\hp4 myrpt.txt

A space after flag is not required,-p10 or -p 10 are both ok.

ls.ntp与 – @< options文件>一起使用.

# 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

我不知道本地安装的ntp.exe是否严格是供应商的创建或HP的实用程序的一部分,因为文档中提到了HP和Epson.

它似乎是用于Windows NT打印服务器的远程打印队列控制CLI.以下是1996年雅虎集团的一个提及: http://tech.groups.yahoo.com/group/lprng/message/1800

不幸的是,他们没有说明它来自哪里或任何文档,但也许这为讨论增加了一些清晰度.

相关文章

Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...
Windows文件操作基础代码 Windows下对文件进行操作使用的一段...
Winpcap基础代码 使用Winpcap进行网络数据的截获和发送都需要...
使用vbs脚本进行批量编码转换 最近需要使用SourceInsight查看...