Created
May 26, 2022 01:35
-
-
Save royswale/11cfcbe719f4348996b07faf67275aca to your computer and use it in GitHub Desktop.
adb shell screenshot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| adb connect 192.168.0.55 | |
| adb shell /system/bin/screencap -p /sdcard/screenshot.png | |
| adb pull /sdcard/screenshot.png C:/Users/xxxx/Downloads/screenshot.png | |
| @echo off | |
| for /F "tokens=2" %%i in ('date /t') do set mydate=%%i | |
| set mytime=%time% | |
| echo Current time is %mydate%:%mytime% | |
| echo %Date:~0,3%day | |
| echo TEST.%date:~-4%.%date:~4,2%.%date:~7,2%.%time:~0,2%.%time:~3,2%.%time:~6,2% | |
| @echo off | |
| @REM cls | |
| echo Date format = %date% | |
| echo dd = %date:~0,2% | |
| echo mm = %date:~3,2% | |
| echo yyyy = %date:~6,4% | |
| echo. | |
| echo Time format = %time% | |
| echo hh = %time:~0,2% | |
| echo mm = %time:~3,2% | |
| echo ss = %time:~6,2% | |
| echo. | |
| echo Timestamp = %date:~6,4%-%date:~3,2%-%date:~0,2%-%time:~0,2%-%time:~3,2%-%time:~6,2% | |
| pause >nul |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment