Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

When I run the following code below in a command prompt (as administrator):

"C:Program FilesWindows Photo ViewerPhotoViewer.dll" "C:0012.tif"

it produces error as shown below :

"This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an associated in the Default Programs control panel."

Both .tif and .tiff are associated in the Default programs control panel.

I am trying to call this from a .net windows app.

Any help is appreciated.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
310 views
Welcome To Ask or Share your Answers For Others

1 Answer

Windows 7

rundll32 "%ProgramFiles%Windows Photo ViewerPhotoViewer.dll", ImageView_Fullscreen path_to_image
  • path_to_image must not be quoted!

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...