Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QueryValue to find Preview application

Status
Not open for further replies.

rjpwilliams

Programmer
Oct 29, 2013
1
GB
I have used QueryValue widely in Access to determine the application associated with a given extension:
Example:
If sExtension = "jpg" Then
sExtension = "jpeg"
End If
If blViewOnly Then
sOpenString = QueryValue(HKEY_CLASSES_ROOT, QueryValue(HKEY_CLASSES_ROOT, "." & sExtension, "") & "\Shell\Open\Command", "")
End If

However, I need to find the application not for Open but for Preview. I could use Shell, but I want to check to see if the application is open first before using shell to call it. Any way of finding it using QueryValue.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top