Hello,
The Windows PhotoViewer is not a standalone exe, but a dll invoked with:
%SystemRoot%\System32\rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen (/path/image_name)
My question is: how to invoke PhotoViewer using TC internal association? Because using double quote or single quote does not work.
Double quote:
Filter6_Open-PhotoViewer=""%SystemRoot%\System32\rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen" "%1""
Single quote:
Filter6_Open-PhotoViewer=""%SystemRoot%\System32\rundll32.exe '%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll', ImageView_Fullscreen" "%1""
By the way, by running from command prompt, I also observed that the "/path/image_name" could not be enclosed with quote,
to be understood by PhotoViewer, so there is a problem when the image_name contains spaces in its name.
Thank you in advance.
How can I invoke PhotoViewer within TC internal association?
Moderators: Hacker, petermad, Stefan2, white
Re: How can I invoke PhotoViewer within TC internal association?
This will work:
For some reason the %1 must not be quoted. That's the command Windows has in the registry (HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\command).
Regards
Dalai
Code: Select all
%SystemRoot%\System32\rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll",ImageView_Fullscreen %1
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: How can I invoke PhotoViewer within TC internal association?
I just use:
and it works fine
Code: Select all
rundll32 shimgvw.dll,ImageView_Fullscreen %1
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: How can I invoke PhotoViewer within TC internal association?
@Dalai
Thank you for your explanation.
@petermad
Thank you very much. It works for me, regardless that the image file name has spaces or not.
So the final command in my wincmd.ini is:
Filter6_open-PhotoViewer="rundll32.exe shimgvw.dll,ImageView_Fullscreen %1"
Thank you for your explanation.
@petermad
Thank you very much. It works for me, regardless that the image file name has spaces or not.
So the final command in my wincmd.ini is:
Filter6_open-PhotoViewer="rundll32.exe shimgvw.dll,ImageView_Fullscreen %1"