- 去掉文件名称中的左右括号和空格的bat脚本:
-
@Echo Off&SetLocal ENABLEDELAYEDEXPANSION
FOR %%a in (*) do (
set "name=%%a"
set "name=!name:(=!"
set "name=!name:)=!"
set "name=!name: =!"
ren "%%a" "!name!"
)
exit
-
- 在手机上自动访问一个网址:
-
@echo off
:loop
adb shell am start -n com.android.browser/.browserActivity
choice /t 5 /d y /n >nul
adb shell input tap 298 137
choice /t 1 /d y /n >nul
adb shell input text url
choice /t 1 /d y /n >nul
adb shell input tap 1006 142
choice /t 5 /d y /n >nul
adb shell am force-stop com.android.browser
choice /t 1 /d y /n >nulgoto loop
-