111,093
社区成员




//获取当前打开的页面地址
SHDocVw.ShellWindows sws = new SHDocVw.ShellWindows();
foreach (SHDocVw.InternetExplorer iw in sws)
{
//查找IE当前打开的地址
string filename = System.IO.Path.GetFileNameWithoutExtension(iw.FullName).ToLower();
if (filename == "iexplore")
{strUrl = iw.LocationURL;}