Command Line Printing - TechRepublic
General discussion
March 21, 2000 at 07:01 PM
umakanth

Command Line Printing

by umakanth . Updated 25 years, 9 months ago

I want to print Windows documents from the command line. For example, I want to develop a program that has two buttons. An “OPEN” button and a “PRINT” button. The “OPEN” button of course would allow me to select some file (eg a MSWord document). When I press PRINT I should be able to generate the command line to print and then print the file.

Whenever we right-click on a document (.doc, .txt etc) the menu also displays the “Print” option. I basically want to be able to call the print function of the application associated with the document.

PLEASE NOTE THAT I DO NOT WANT TO DISPLAY THE FILE SELECTED. I ONLY WANT TO PRINT ANY FILE GIVEN IT’S NAME.

This discussion is locked

All Comments