| 1. |
Solve : Batch Print *.rtf files with Word? |
|
Answer» Hi, I don't know how to issue a "Click No" command from a command prompt. Is this possible?I don't know. Hopefully, someone else will have an answer. I just did this with a file called document.rtf and Word opened the file, printed it, and quit without asking me if I wanted to save it. Code: [Select]"C:\Program Files (x86)\Microsoft Office\OFFICE11\WINWORD.EXE" Document.rtf /q /n /mFilePrintDefault /mFileExit Obviously I had to adapt the path to WINWORD.EXE for my system, so the question arises why does Word bring up (I presume) the Save As dialog?. This can happen from the Word Print button if the printer is not configured correctly, so I would check that out. Did you try with the /x switch? Quote from: Salmon Trout on December 13, 2011, 11:51:25 AM I just did this with a file called document.rtf and Word opened the file, printed it, and quit without asking me if I wanted to save it.That Worked for me as well. Hoping the above works, but if not, an AutoIt script would do the trick (it could click on any buttons as needed). http://www.autoitscript.com/site/autoit/Well color me embarrassed...i read rtf to be PDF... Sorry///my bad.You must be poonished. Hi, Thanks for all of the tips. I tried the /x switch. It seemed to work the same way as before. It brings up the same "Saves changes" dialogue box, just like before. I think my rtf file might have something different in it that is causing Word to modify it when I print it. Checking out the print settings seems like a good idea. Unfortunately, I'm such a NEWBIE for things like this that I don't know what I'm looking for. I'll check out AutoIT. Glenn What version of Word are you using? There could be some unseen NUANCES between different Word versions that could be causing this issue. |
|