如何在命令提示符(Windows)中使用打印命令 [英] how to use print command in command prompt(Windows)

查看:79
本文介绍了如何在命令提示符(Windows)中使用打印命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从 dos 命令提示符 (Windows-XP) 打印 word 文档.

I want to print the word document from dos command prompt(Windows-XP).

我已经使用 IP 地址和标准 TCP/IP 端口安装了打印机.

I have installed the printer using IP address and Standard TCP/IP port.

我没有使用 LPT 或 COM 端口,

I am not using LPT or COM Ports,

谁能帮帮我...

推荐答案

根据 this,您可以使用实际的 word 程序在文件上运行宏.我做到了:

According to this, you can use the actual word program to run macros on the file. I did:

"c:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE" "MyFile.doc" /q /n mFilePrintDefault /mFileExit

打开word,打印文件,再次关闭word.这当然可能不是您真正需要的,但至少它可以完成工作.请记住,您的系统上的路径可能不同(如评论中所指出的)

And word was opened, the file was printed and the word was closed again. This of course might not be exactly what you need, but at least it does the job. Remeber that the path might be different on your system (as pointed out in the comments)

这篇关于如何在命令提示符(Windows)中使用打印命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆