开发者

How to print through CMD?

I have a file which I'd like to print using system CMD. I used the comman开发者_开发百科d NET USE with the following syntax as mentioned below:

net use LPT1 \\machine name\printer name ..\file name.

While using this command I see nothing is the printing, help me.


The "net use" command just sort of gives the printer a name (in this case LPT1). The file parameter is useless there.

After you have mapped the printer with "net use" like in you example, you can redirect output to it, for example with type 'file name' > lpt1:

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜