Announcement

Collapse
No announcement yet.

Problem with File.GetDefaultViewer action

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with File.GetDefaultViewer action

    I have a problem with File.GetDefaultViewer action.
    I want to get the path to the application that is associated with JPEG files (.jpg, .jpeg).

    I installed "Ashampoo Photo Commander 12", but I use to open JPEG files "Windows Picture and Fax Viewer".

    When I using this action, it's returns the path to "Ashampoo Photo Commander 12".

    What could be the problem?

  • #2
    Set the default program as desired for the JPG extension in the Control Panel, by clicking the "Change program..." button:

    Click image for larger version

Name:	SCRN-2014-10-03-01.png
Views:	1
Size:	58.3 KB
ID:	284233

    Ulrich

    Comment


    • #3
      I did as you said, but it still!

      Important for me to get info from this action that the user uses "Windows Picture and Fax Viewer" to open the JPEG files.

      Perhaps this is due to the fact that the "Windows Picture and Fax Viewer" does not have an executable file (it is a set of libraries)?

      Comment


      • #4
        If you want to use the Windows Picture Viewer, you should be able to open the file with something similar to this:
        Code:
        %SystemRoot%\System32\rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %1
        In that case, you wouldn't need to check the "default program", which can be pointing to something else.

        Ulrich

        Comment


        • #5
          Thanks for quick answer, Ulrich!

          Comment

          Working...
          X