I have setup a PostScript printer called PSPinter to the FILE port. I can go into various programs (MS Word, Excel, Acrobat, etc.), and print the document to this printer. It asks me for a file name, and once it outputs the file, I can examine it and confirm that it is well-formed PostScript. I need to do something like, which behind the scenes invokes the right program and calls the print function on it:
print /d:PSPRinter <inputFile.docx> <outputName.ps>
My question is, how can I do this programatically from the Windows command line? I would also need to be able to specify the output file name. Alternately, I am open to using something like CutePDF to produce the output (I don't care if the output of the files is PDF or (E)PS), but this method would also have to run programatically from the command line.