Classic Shell
http://www.classicshell.net/forum/

Custom button for Windows Photo Viewer
http://www.classicshell.net/forum/viewtopic.php?f=8&t=2219
Page 1 of 1

Author:  Ninebear [ Fri Feb 21, 2014 6:30 am ]
Post subject:  Custom button for Windows Photo Viewer

I am running Classic Shell on Windows 7 (64-bit) computer. I can not figure out how to get the Windows Photo Viewer to work as a custom button on the toolbar.
I've tried every combination I can think of, but no luck.
I know the photo viewer is a DLL, so I've tried rundll32.exe.

Rundll32.exe is here: %SystemRoot%\System32\rundll32.exe
Photoviewer DLL is here: %SystemDrive%\Program Files\Windows Photo Viewer\PhotoViewer.dll

I've tried quotes, no quotes and feeding file name with the %2.

Any help would be appreciated.

Author:  Gaurav [ Fri Feb 21, 2014 8:06 am ]
Post subject:  Re: Custom button for Windows Photo Viewer

Try this for Photo Viewer command on Classic Explorer's toolbar:
rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll",ImageView_Fullscreen %2

Note that Rundll32 functions are case sensitive.

For Photo Gallery, it's this:
32-bit systems:
"%ProgramFiles%\Windows Live\Photo Gallery\WLXPhotoGallery.exe" /LaunchPhotoViewer /v "%2"

64-bit systems:
"%ProgramFiles(x86)%\Windows Live\Photo Gallery\WLXPhotoGallery.exe" /LaunchPhotoViewer /v "%2"

Author:  Ninebear [ Fri Feb 21, 2014 8:15 am ]
Post subject:  Re: Custom button for Windows Photo Viewer  Topic is solved

Magical!
Thank you very much that worked perfectly.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/