Hi,
I have more than 100 rtf files in a folder on Windows 7. I'd like to print them out from the command line.
I have some code which will open a given rtf file in Word, print it and close it. Unfortunately, printing the the rtf files that I have must alter the files, since Word brings up the Save dialogue box when I try to close the file. So I have to manually close the file, obviously making it not as automatic as I'd like it.
Here's the command:
"C:\Program Files\Microsoft Office\Office12\winword.exe" test1.rtf /q /n /mFilePrintDefault /FileExit
This works fine, exempt for the prompt to save or not save the file. I'm looking for a command to discard all changes and close the file.
Any help would be appreciated.