命令结果返回变量
@echo off
echo current time is %date% %time%
for /f "delims=" %%i in ('adb shell cat /sys/class/thermal/thermal_zone0/temp') do set a=%%i
echo a=%a%
Rem 换行,注意后面有个点,中间没空格
echo.
for /f "delims=" %%i in ('dir ') do set b=%%i
echo b=%b%
Rem 换行,注意后面有个点,中间没空格
echo.
参考链接
最后更新于