Board logo

标题: 请问下P处理能不能对票据打印机的打印? [打印本页]

作者: 23112656     时间: 2008-8-20 00:02    标题: 请问下P处理能不能对票据打印机的打印?

我说的票据打印机就是超市里结帐时打的那种小票,可不可以通过P处理的方式来打印呢? 如打印txt里的内容,但具体用什么命令来打印呢?

[ Last edited by 23112656 on 2008-8-20 at 01:47 AM ]
作者: 23112656     时间: 2008-8-20 20:22
没有这样的方法吗?
作者: fw623080014     时间: 2008-8-21 00:31
有的 等高手吧
作者: lxmxn     时间: 2008-8-21 03:19

C:\WINDOWS\system32\NOTEPAD.EXE /p yourfile

作者: everest79     时间: 2008-8-22 11:02
print /d:defaultcon x.txt
作者: 23112656     时间: 2008-8-25 12:45
斑竹大哥能介绍下 /p的意思吗?
作者: HAT     时间: 2008-8-25 13:38
应该是print的缩写吧
作者: HAT     时间: 2008-8-25 13:43
转帖

  Quote:
notepad.exe
Creates a new empty document.

notepad.exe Filename
Opens the specified file.

notepad.exe /p Filename
Prints a file on the default printer.

notepad.exe /pt "%1" "%2" "%3" "%4"
Prints a file on the specified printer. Used by the Shell to support drag-and-drop to printers.
%1 represents the file name and %2 the printer name. You can ignore %3 and %4 for Windows 95 and later systems. For Windows 3.1 systems, %3 represents the driver name and %4 the port name. Unlike most similar arguments, the %3 and %4 arguments of printto should not be enclosed in quotation marks.