中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-09 12:54
47,811 主题排行 / 349,895 发帖 / 今日 0 篇 / 48,254 会员排行
DOS批处理 & 脚本技术(批处理室) » 请问下P处理能不能对票据打印机的打印?
可打印版本  830 / 7
第1楼 23112656 发表于 2008-08-20 00:02
中级用户 发帖 99 积分 220
请问下P处理能不能对票据打印机的打印?
我说的票据打印机就是超市里结帐时打的那种小票,可不可以通过P处理的方式来打印呢? 如打印txt里的内容,但具体用什么命令来打印呢?

[ Last edited by 23112656 on 2008-8-20 at 01:47 AM ]
第2楼 23112656 发表于 2008-08-20 20:22
中级用户 发帖 99 积分 220
没有这样的方法吗?
第3楼 fw623080014 发表于 2008-08-21 00:31
初级用户 发帖 27 积分 53
有的 等高手吧
第4楼 lxmxn 发表于 2008-08-21 03:19
版主 发帖 4,938 积分 11,386
第5楼 everest79 发表于 2008-08-22 11:02
金牌会员 发帖 1,127 积分 2,564
print /d:defaultcon x.txt
第6楼 23112656 发表于 2008-08-25 12:45
中级用户 发帖 99 积分 220
斑竹大哥能介绍下 /p的意思吗?
第7楼 HAT 发表于 2008-08-25 13:38
版主 发帖 5,017 积分 9,023
应该是print的缩写吧
第8楼 HAT 发表于 2008-08-25 13:43
版主 发帖 5,017 积分 9,023
转帖
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.
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023