Advertisement
J2897

[Android] ADB Push Files

Mar 26th, 2015
545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.58 KB | None | 0 0
  1. :: Released under the GNU General Public License version 3 by J2897.
  2.  
  3. @echo OFF
  4. setlocal
  5.  
  6. set "ADB=C:\Android\adb.exe"
  7.  
  8. REM Make sure ADB is installed.
  9. if not exist "%ADB%" (
  10.     echo File not found...
  11.     echo %ADB%
  12.     goto :End
  13. )
  14.  
  15. if [%1]==[] (
  16.     echo Drop some files on top of this file to send them to your SD Card's root folder.
  17.     goto :End
  18. )
  19.  
  20. :Getfile
  21. if [%1]==[] (goto :End)
  22. set "FILENAME=%~nx1"
  23. set "LOCAL=%1"
  24. set "REMOTE=/storage/sdcard0/%FILENAME%"
  25. "%ADB%" push "%LOCAL%" "%REMOTE%" || goto :End
  26. shift
  27. goto :Getfile
  28.  
  29. :End
  30. echo.
  31. echo Finished!
  32. echo.
  33. endlocal
  34. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement