深入浅出PowerShell——打开常用的网址

$navOpenInBackgroundTab = 0x1000;
$ie = new-object -com InternetExplorer.Application
$ie.Navigate2("http://blogs.msdn.com");
$ie.Navigate2("http://www.baidu.com",$navOpenInBackgroundTab);
$ie.Navigate2("http://www.google.com",$navOpenInBackgroundTab);
$ie.Navigate2("http://www.yahoo.com",$navOpenInBackgroundTab);
$ie.Visible = $true

 

延伸阅读:使用Powershell模拟IE的行为

http://www.6a8a.com/2011/PHP_0611/2359.html

posted @ 2011-11-17 18:29  风影极光  阅读(574)  评论(0编辑  收藏  举报