Windows PowerShellで使用されるリダイレクト (> と >> と 2>&1) について説明します。 コマンドの実行結果の標準出力をファイルに出力 このサンプルでは、Get-ChildItem の実行結果である標準出力をファイル (D:\Dummy.log) に書き出しています。出力先にファイルが存在しない時は新規作成、存在する時は上書きされます。 Get-ChildItem C:\Windows\DirectX.log > D:\Dummy.log コマンドの実行結果の標準出力をファイルに出力 このサンプルでは、Get-ChildItem の実行結果である標準出力をファイル (D:\Dummy.log) に書き出します。出力先にファイルが存在しない時は新規作成、存在する時は追加されます。 Get-ChildItem C:\Windows\DirectX.log >> D:\