echo on
set num=0
setlocal ENABLEDELAYEDEXPANSION
for /f "tokens=1,2 delims=-" %%a in ('dir /a-d/b *.apk') do (
adb install -r -d ""%CD%\%%a""
)
echo end...
pause
@echo off
adb shell root & adb remount
setlocal ENABLEDELAYEDEXPANSION
set p=0
for /f "tokens=2,9 delims= " %%i in ('adb shell ps') do (
if /i %%j==com.ktc.ktcbar (
set "p=%%i"
)
)
set "msg_not_found=can't find task of ktcbar"
set "msg_ok=successfully killed, task id = !p!"
if /I !p!==0 (
echo %msg_not_found%
) else (
adb shell kill -9 !p!
echo %msg_ok%
)
pause
echo off
set num=0
setlocal ENABLEDELAYEDEXPANSION
for /f "tokens=1,2 delims=-" %%a in ('dir /a-d/b *.jpg') do (
set /a num+=1
set /a num2=1000+!num!
echo !num2:~1!
ren "%%a-%%b" "Shuhao-!num2:~1!.jpg"
)
echo end...
pause
echo off
set num=0
setlocal ENABLEDELAYEDEXPANSION
for /f "tokens=1,2,3,4 delims=_" %%a in ('dir /a-d/b *.png') do (
ren "app_pink_icon_%%d" "app_static_icon_%%d"
)
echo end...
pause