中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-06-13 21:09
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 请问下P处理能不能对票据打印机的打印?
楼 主 请问下P处理能不能对票据打印机的打印? 发表于 2008-08-20 00:02 ·  中国 云南 昆明 电信
中级用户
★★
积分 220
发帖 99
注册 2008-06-26 15:12
UID 120818
性别 男
状态 离线
我说的票据打印机就是超市里结帐时打的那种小票,可不可以通过P处理的方式来打印呢? 如打印txt里的内容,但具体用什么命令来打印呢?

[ Last edited by 23112656 on 2008-8-20 at 01:47 AM ]
2 发表于 2008-08-20 20:22 ·  中国 云南 昆明 电信
中级用户
★★
积分 220
发帖 99
注册 2008-06-26 15:12
UID 120818
性别 男
状态 离线
没有这样的方法吗?
3 发表于 2008-08-21 00:31 ·  中国 江苏 盐城 电信
初级用户
积分 53
发帖 27
注册 2007-12-22 21:39
UID 106500
性别 男
状态 离线
有的 等高手吧
4 发表于 2008-08-21 03:19 ·  中国 湖北 武汉 联通
版主
★★★★★
积分 11,386
发帖 4,938
注册 2006-07-23 17:10
UID 59080
状态 离线
C:\WINDOWS\system32\NOTEPAD.EXE /p yourfile
5 发表于 2008-08-22 11:02 ·  中国 广东 广州 天河区 电信
金牌会员
★★★★
一叶枝头,万树皆春
积分 2,564
发帖 1,127
注册 2006-12-25 22:57
UID 74552
性别 男
状态 离线
print /d:defaultcon x.txt
49206C6F766520796F752067757973 54656C3A3133383238343036373837
6 发表于 2008-08-25 12:45 ·  中国 云南 昆明 电信
中级用户
★★
积分 220
发帖 99
注册 2008-06-26 15:12
UID 120818
性别 男
状态 离线
斑竹大哥能介绍下 /p的意思吗?
7 发表于 2008-08-25 13:38 ·  美国 惠普HP
版主
★★★★★
积分 9,023
发帖 5,017
注册 2007-05-31 19:39
UID 89899
性别 男
状态 离线
应该是print的缩写吧
8 发表于 2008-08-25 13:43 ·  美国 惠普HP
版主
★★★★★
积分 9,023
发帖 5,017
注册 2007-05-31 19:39
UID 89899
性别 男
状态 离线
转帖
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.
论坛跳转: