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

时间:2012-04-12 11:20:44

标签: c# .net winforms hta

有没有办法在IE中打开HTA文件而不会被提示使用C#和WindowsForms保存/打开/取消? 这是我如何做的,出现提示:

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

谢谢!

1 个答案:

答案 0 :(得分:1)

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"));
相关问题