Advertisement
J2897

[Android] ADB Launch Shell

Apr 6th, 2015
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.64 KB | None | 0 0
  1. :: Released under the GNU General Public License version 3 by J2897.
  2.  
  3. REM This is a one-click solution for launching your Android shell.
  4. REM Put a shortcut to this file in your Start Menu.
  5.  
  6. @echo OFF
  7. setlocal
  8. color 1b
  9. mode CON:cols=100 lines=50
  10.  
  11. set "ADB=C:\Android\adb.exe"
  12.  
  13. REM Make sure ADB is installed.
  14. if not exist "%ADB%" (
  15.     echo File not found...
  16.     echo %ADB%
  17.     goto :End
  18. )
  19.  
  20. :Launch_Shell
  21. "%ADB%" -d shell
  22. echo.
  23. echo Shell session ended.
  24. echo.
  25. choice /C:yn /T 300 /D n /M "Launch again "
  26. if ERRORLEVEL 2 (goto :End)
  27. if ERRORLEVEL 1 (cls & goto :Launch_Shell)
  28.  
  29. :End
  30. echo.
  31. echo Finished!
  32. echo.
  33. endlocal
  34. pause
  35. color
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement