批处理 2021-08-23 本文已影响0人 dubingxin 将一个命令的返回结果传给一个变量 @echo off for /f "delims=" %%i in ('where Java') do set a=%%i echo %a% pause