この記事は2008/02/04にわんくまブログで書いたものです。
ネタ元:http://forums.microsoft.com/TechNet-JA/ShowPost.aspx?PostID=2784931&SiteID=36
PowerShellのInvoke-Itemコマンドレットは外部アプリを起動できるコマンドレットですが、引数を渡す方法がありません。(というか見つけられれていない?)
Google先生に聞いたりしても、なかなか良い返事が聞けません。
PS>Invoke-Item "c:\Program Files\Mozilla Firefox\firefox.exe" http://blog.hiros-dot.net/
と書いてもエラーになります。
Set-Aliasコマンドレットで
PS> Set-Alias fox "c:\Program Files\Mozilla Firefox\firefox.exe" PS> fox http://blogs.wankuma.com/hiro/
だと、引数渡せるんですけどね....
Invoke-Itemでやる方法はあるのかな......?
Theme design by Jelle Druyts
Pick a theme: BlogXP business calmBlue Candid Blue dasBlog dasblogger DirectionalRedux Discreet Blog Blue Elegante essence Just Html MadsSimple Mobile Mono Movable Radio Blue Movable Radio Heat nautica022 orangeCream Portal Project84 Project84Grass Slate Sound Waves Tricoleur useit.com Voidclass2 BlogXP business calmBlue Candid Blue dasBlog dasblogger DirectionalRedux Discreet Blog Blue Elegante essence Just Html MadsSimple Mobile Mono Movable Radio Blue Movable Radio Heat nautica022 orangeCream Portal Project84 Project84Grass Slate Sound Waves Tricoleur useit.com Voidclass2
Powered by: newtelligence dasBlog 2.0.7226.0
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2009, HIRO
E-mail