title: Programmatically right click and print files
body: <p>I want to read a folder for all the files and programmatically print them as though I right-click > print.</p>
  
  <p>I am aware printing this way is default-application specific. So I think this is a two step procedure: How do I check whether a file with its default application supports print; and how do I actually issue the command to print the file?</p>
  
  <p>Is printing this way called "shell command printing" or something like that? Will need the correct terms for googling for information.</p>
  
  <p>Any other better ways you would suggest for this task?</p>
  
  <p><strong>EDIT</strong>: The files types can be anything other than simple .txt files e.g. PDF, DWG, JPEG etc.</p>