更新时间:2023-02-04 15:06:54
检查以下答案
从资源管理器窗口中获取文件夹路径 [ ^ ]
使用c#获取每个资源管理器窗口的路径 [ ^ ]
check below answers
Get folder path from Explorer window[^]
Get the path of every explorer window with c#[^]
获取Internet Explorer的文件路径r您需要访问注册表项的应用程序:
To get the filepath to the Internet Explorer Application you need to access a Registry Key:
// required to access Registry
using Microsoft.Win32;
// required to use Process.Start
using System.Diagnostics;
// should work for Win 7/8
private string IEKey = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE";
private void LaunchIE()
{
string IEPath = Registry.GetValue(IEKey,"Path","").ToString().TrimEnd(';') + @"\iexplore.exe";
Process.Start(IEPath);
}