Right Contex Menu - push file.bat





@echo off
rem 注意:
rem 1. 参数不能包含中文;




echo Start to copy files to /data/app
echo.




:PUSHFILE
if  '%1'=='' goto STATUS
echo processing %1 ...
adb push %1 /data/app
shift
goto PUSHFILE




:STATUS


IF ERRORLEVEL 1 goto FAIL
IF ERRORLEVEL 0 goto SUCCESS


:FAIL
echo.
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo FAILED! File was not copied, please check your adb connection. 
echo.
pause
goto DONE


:SUCCESS
echo.
echo Done. File was copied to /data/app successfully.
;;ping   -n   1   localhost > nul
goto DONE


:DONE




你可能感兴趣的:(Right Contex Menu - push file.bat)