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

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

问题描述

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

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

它产生

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

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

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

任何帮助是AP preciated。

解决方案
  

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

有关运行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.

这篇关于如何在命令行中运行Photoviewer.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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