What is the difference between the verbs "print" and "printo" when starting a process?

I suspect this may apply to several programming languages, but in this context I mean .NET.

When I use System.Diagnostics.Process.Start, I can include an object as an argument System.Diagnostics.ProcessStartInfo. One of the properties of the ProcessStartInfo class is Verb(string type). There is also a string [] property for Verbs, which appears to contain a list of valid values ​​for Verb.

I noticed that the array Verbshas a value for "Print" and a value for "PrintTo". What is the difference between the two? I tested both, and both of them seem to make the file print to my printer by default.

+5
source share
2 answers

According to this MSDN article , PrintTo is mainly present to support drag and drop operations for printing (dragging a document by the printer icon, for example). It seems like it is probably not intended to be used by your code.

+3
source

The verb printto is commonly used when the user drags a file and drags it onto the printer shortcut. You need to provide at least two arguments, the first of which is the file you want to print, and the second is the name of the printer. The registry entries on my machine use additional arguments, but it is completely unclear to me what they can be.

+1
source

All Articles