• 追加された行はこの色です。
  • 削除された行はこの色です。
* echo [#y7498fb6]

** Write-OutputとWrite-Host [#b93a037a]
Write-Outputはコマンドレットの結果をパイプラインに渡す。Wite-Hostはコマンドレットの結果をパイプラインに渡さない。

 PS> function Receive-Output
 {
     process { Wite-Host $_ -ForegroundColor Green }
 }
 
 PS> Write-Output  "this is a test" | Receive-Output
 PS> Write-Host "this is a test" | Receive-Output
 PS> Write-Output  "this is a test"



トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS