Read stdin stream in a batch file

前端 未结 4 729
春和景丽
春和景丽 2020-11-27 17:05

Is it possible to use a piped stdin stream inside a batch file?

I want to be able to redirect the output of one command into my batch file process.bat l

4条回答
  •  南笙
    南笙 (楼主)
    2020-11-27 17:40

    FOR /F "tokens=1* delims=]" %%A IN ('FIND /N /V ""') DO (
        >  CON    ECHO.%%B
        >> %File% ECHO.%%B
    )
    

    Source here: http://www.robvanderwoude.com/unixports.php#TEE

提交回复
热议问题