如何在命令行中运行Photoviewer.dll命令行、如何在、dll、Photoviewer

2023-09-03 03:52:01 作者:停止、想念

当我在命令提示符下运行以下code以下(以管理员身份):

 C:\ Program Files文件\ Windows照片查看器\ PhotoViewer.dllC:\ 00012.tif
 

它产生

错误:。此文件没有与它执行此操作有关的程序,请安装一个程序或者,如果已经安装,请在默认程序控制面板相关的

无论.TIF和.TIFF在默认程序控制面板相关联。

我想从一个.NET Windows应用程序调用此。

任何帮助是AP preciated。

解决方案   

RUNDLL32C:\ Program Files文件\ Windows照片查看器\ PhotoViewer.dllC:\ 00012.tif

DLL Export Viewer 1.50 汉化绿色版

有关运行DLL,有 RUNDLL32

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

"C:\Program Files\Windows Photo Viewer\PhotoViewer.dll" "C:\00012.tif"

it produces

Error: "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.

解决方案

rundll32 "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll" "C:\00012.tif"

For running a dll, there is rundll32.