简体   繁体   English

如何在命令提示符下使用打印命令(Windows)

[英]how to use print command in command prompt(Windows)

I want to print the word document from dos command prompt(Windows-XP). 我想从dos命令提示符(Windows-XP)打印Word文档。

I have installed the printer using IP address and Standard TCP/IP port. 我已经使用IP地址和标准TCP / IP端口安装了打印机。

I am not using LPT or COM Ports, 我没有使用LPT或COM端口,

Could some one help me out... 有人可以帮帮我吗...

According to this , you can use the actual word program to run macros on the file. 根据这个 ,你可以使用实际的Word程序来运行该文件的宏。 I did: 我做了:

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

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) 记住路径在您的系统上可能不同(如注释中所指出)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM