如何在命令行中运行 Photoviewer.dll [英] How to run Photoviewer.dll in command line

查看:34
本文介绍了如何在命令行中运行 Photoviewer.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆