Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/314.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
C# 在IE中打开HTA文件,而不在C中显示保存/打开/取消提示#_C#_.net_Winforms_Hta - Fatal编程技术网

C# 在IE中打开HTA文件,而不在C中显示保存/打开/取消提示#

C# 在IE中打开HTA文件,而不在C中显示保存/打开/取消提示#,c#,.net,winforms,hta,C#,.net,Winforms,Hta,有没有一种方法可以在IE中打开HTA文件,而不用使用C#和WindowsForms提示保存/打开/取消? 我是这样做的,提示出现了: Process.Start("iexplore", Path.Combine(Application.StartupPath, "file.hta")); 谢谢大家! HTA由explorer.exe运行,而不是由浏览器(iexplore.exe)运行,因此您可以尝试以下操作: Process.Start("explorer.exe", Path.Combine

有没有一种方法可以在IE中打开HTA文件,而不用使用C#和WindowsForms提示保存/打开/取消? 我是这样做的,提示出现了:

Process.Start("iexplore", Path.Combine(Application.StartupPath, "file.hta"));

谢谢大家!

HTA由explorer.exe运行,而不是由浏览器(iexplore.exe)运行,因此您可以尝试以下操作:

Process.Start("explorer.exe", Path.Combine(Application.StartupPath, "file.hta"));
或:

Process.Start("mshta.exe", Path.Combine(Application.StartupPath, "file.hta"));