ホーム > リダイレクトでファイルに出力する
リダイレクトでファイルを出力するには > を使います。
- 標準出力をファイルに出力します
- 標準エラー出力をファイルに出力します
- 標準出力と標準エラー出力をファイルに出力します
- 標準出力を既存のファイルに追加で出力するには >> と続けます
C:\TIPS>timemachine.exe > log.txt
C:\TIPS>timemachine.exe 2> log.txt
C:\TIPS>timemachine.exe > log.txt 2>&1
C:\TIPS>timemachine.exe >> log.txt
確認したOS: Windows 10