ホーム > コマンドの出力を見えなくする
コマンドの出力を見えなくするには nul を使います。
- 標準出力を見えなくする
- 標準エラー出力を見えなくする
- 標準出力と標準エラー出力を見えなくする
C:\TIPS>timemachine.exe > nul
C:\TIPS>timemachine.exe 2> nul
C:\TIPS>timemachine.exe > nul 2>&1
確認したOS: Windows 10
コマンドの出力を見えなくするには nul を使います。
C:\TIPS>timemachine.exe > nul
C:\TIPS>timemachine.exe 2> nul
C:\TIPS>timemachine.exe > nul 2>&1
確認したOS: Windows 10