前言
记录于此,方便自己查阅。
正文
初始化变量
# 初始化count为0 set /a count=0
# 普通字符 set read=BiuMall # 有特殊字符 set "read=Biu&Mall"
# 写入 echo BiuMall>biu.txt # 读取 set /p read=<"biu.txt"
打印变量
echo %count% echo %read%
简单例子
@echo off set /a count=0 :start set /a count+=1 echo start tap : %count% adb shell input tap 470 240 adb shell sleep 1 goto start
参考文章
© 版权声明