如何在命令行中运行 Photoviewer.dll [英] How to run Photoviewer.dll in command line
问题描述
当我在命令提示符下(以管理员身份)运行以下代码时:
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."
.tif
和 .tiff
都在默认程序控制面板中关联.
Both .tif
and .tiff
are associated in the Default programs control panel.
我正在尝试从 .net Windows 应用程序调用它.
I am trying to call this from a .net windows app.
感谢任何帮助.
推荐答案
rundll32 "C:Program FilesWindows 照片查看器PhotoViewer.dll" "C: 0012.tif"
rundll32 "C:Program FilesWindows Photo ViewerPhotoViewer.dll" "C: 0012.tif"
为了运行一个dll,有rundll32
.
For running a dll, there is rundll32
.
这篇关于如何在命令行中运行 Photoviewer.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!