how to use pipe in windows cmd code example Example: make a batch file that accepts pipe input @echo off setlocal set /p "piped=" echo piped: %piped%