Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 双击动作中使用的shell动词是什么?_.net_Windows_Registry_Windows Shell_Shell Verbs - Fatal编程技术网

.net 双击动作中使用的shell动词是什么?

.net 双击动作中使用的shell动词是什么?,.net,windows,registry,windows-shell,shell-verbs,.net,Windows,Registry,Windows Shell,Shell Verbs,我正在尝试以编程方式在WindowsServer2008R2中打开.jpg文件 var fileName = @"C:\Users\Admin\Desktop\TEST.JPG"; Process.Start(fileName); 但此代码会导致错误,因为系统中未安装照片库查看器组件 但如果我从资源管理器双击打开该文件,它将在MS Paint中打开。在寄存器中只有一个动词“printto”。Windows如何在MS Paint中打开文件?双击动作默认使用哪个动词 我没有Windows Ser

我正在尝试以编程方式在WindowsServer2008R2中打开.jpg文件

var fileName = @"C:\Users\Admin\Desktop\TEST.JPG";
Process.Start(fileName);
但此代码会导致错误,因为系统中未安装照片库查看器组件

但如果我从资源管理器双击打开该文件,它将在MS Paint中打开。在寄存器中只有一个动词“printto”。Windows如何在MS Paint中打开文件?双击动作默认使用哪个动词


我没有Windows Server 2008 R2,但afaik Windows Shell使用该机制。因此,如果Shell不知道如何打开JPEG文件类型,看起来是
HKEY\U CLASSES\U ROOT\SystemFileAssociations\image\OpenWithList
key和hooray-mspaint.exe