OverviewExamples
string File.GetDefaultViewer ( |
Returns the path to the default viewer application associated with a specific file extension.
(string) The file extension (e.g. ".jpg" or ".txt").
Note: You can include or omit the dot (.) in the file extension. For example, ".pdf" and "pdf" will both work fine.
(string) The path to the default viewer application. If this action fails, a blank string "" is returned. You can use Application.GetLastError to determine whether this action failed, and why.
See also: Related Actions