bat 脚本
来源:互联网 发布:水仙花数c语言数字分离 编辑:程序博客网 时间:2024/05/07 09:02
:: this is .bat test
::
::
:: 2015_02_28
:: yangchaofeng
@echo off
echo 欢迎来到BAT!
:: ############################# 显示LEDS 亮度值 #############################
:Display_leds_brightness
echo left_brightness
adb shell cat /sys/class/leds/left/brightness
echo right_brightness
adb shell cat /sys/class/leds/right/brightness
echo right_brightness
adb shell cat /sys/class/leds/lcd-backlight/brightness
GOTO :EOF
:: ############################# 自动重启 #############################
:auto_reboot
echo adb shell sleep 20
adb shell sleep 20
echo adb reboot
adb reboot
GOTO :EOF
:: ############################# 获取系统时间 #############################
:get_system_time
set path="%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%"
echo %path%
::mkdir %path%
::cd ./%path%
GOTO :EOF
:: ########################################### main 函数 ###########################################
set /a num=0
:main_start
echo adb wait-for-device
adb wait-for-device
if 1==0 (
call :Display_leds_brightness
)
if 1==0 (
call :auto_reboot
)
if 1==1 (
call :get_system_time
)
::adb shell sleep 4
set /a num=num+1
echo ################# The times is %num% ##########################
goto main_start
:: ########################################### main 函数 ###########################################
pause
::
::
:: 2015_02_28
:: yangchaofeng
@echo off
echo 欢迎来到BAT!
:: ############################# 显示LEDS 亮度值 #############################
:Display_leds_brightness
echo left_brightness
adb shell cat /sys/class/leds/left/brightness
echo right_brightness
adb shell cat /sys/class/leds/right/brightness
echo right_brightness
adb shell cat /sys/class/leds/lcd-backlight/brightness
GOTO :EOF
:: ############################# 自动重启 #############################
:auto_reboot
echo adb shell sleep 20
adb shell sleep 20
echo adb reboot
adb reboot
GOTO :EOF
:: ############################# 获取系统时间 #############################
:get_system_time
set path="%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%"
echo %path%
::mkdir %path%
::cd ./%path%
GOTO :EOF
:: ########################################### main 函数 ###########################################
set /a num=0
:main_start
echo adb wait-for-device
adb wait-for-device
if 1==0 (
call :Display_leds_brightness
)
if 1==0 (
call :auto_reboot
)
if 1==1 (
call :get_system_time
)
::adb shell sleep 4
set /a num=num+1
echo ################# The times is %num% ##########################
goto main_start
:: ########################################### main 函数 ###########################################
pause
0 0
- bat 脚本
- bat 脚本
- bat脚本
- BAT脚本
- bat脚本
- bat 脚本
- bat脚本
- 脚本.bat
- bat 脚本
- BAT脚本
- bat脚本
- BAT脚本
- bat脚本
- bat脚本
- bat脚本
- bat 脚本
- bat 脚本基本语法
- 优化电脑---BAT脚本
- C# wpf 使用资源文件 resx
- 使用栈的迷宫算法java版
- 使用UltraISO刻录系统到U盘可能会出现打不开的情况
- 控制结构程序设计5
- 关于团队沟通,达成结论的一个看法
- bat 脚本
- Codeforces 520C. DNA Alignment 找规律
- 学习目标
- 控制结构程序设计6
- UNIX高级环境编程(7)标准IO函数库
- Java学习之关闭流的几种写法--2015-03-02
- 黑马程序员——Java基础部分二、
- leetcode_Majority Element (找出现次数大于一半的元素)-easy
- cent os 安装jdk