您的位置:首页 > 其它

获取所有IE当前浏览的Url

2007-12-12 17:36 162 查看
using
System;

using
System.Windows.Forms;

using
SHDocVw;

namespace
WindowsApplication35

...
{



public

partial

class
Form1 : Form





...
{



public
Form1()





...
{



InitializeComponent();



}



private

void
Form1_Load(
object
sender, EventArgs e)





...
{



ShellWindowsClass shellWindows
=

new
ShellWindowsClass();



foreach
(InternetExplorer ie
in
shellWindows)





...
{



string
filename
=
System.IO.Path.GetFileNameWithoutExtension(ie.FullName).ToLower();





if
(filename.Equals(
"
iexplore
"
))





...
{



Console.WriteLine(ie.LocationURL);



}



}



}







}



}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: