我说的票据打印机就是超市里结帐时打的那种小票,可不可以通过P处理的方式来打印呢? 如打印txt里的内容,但具体用什么命令来打印呢?
[ Last edited by 23112656 on 2008-8-20 at 01:47 AM ]
[ Last edited by 23112656 on 2008-8-20 at 01:47 AM ]
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
C:\WINDOWS\system32\NOTEPAD.EXE /p yourfilenotepad.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.