开发者

how to use print command in command prompt(Windows)

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

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

I am not using LPT or COM Ports,

Could some one help me out开发者_开发知识库...


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

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)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜