@echo test
@echo fastboot flash boot %1
@echo adb push %1 /system
@echo off
rem for /f "delims=" %%i in ('echo %1^|findstr .img') do (@set a=%%i)
@for /f "delims=" %%i in ('echo %1') do (@set a=%%i)
@echo %a%
@if "%a:~-4,4%"==".img" (echo "is image file") else echo "is not image file"
@if "%a:~-3,3%"==".so" (echo "is so file") else echo "is not so file"
@echo %1
@echo fastboot flash boot %1
@echo adb push %1 /system
@echo off
rem for /f "delims=" %%i in ('echo %1^|findstr .img') do (@set a=%%i)
@for /f "delims=" %%i in ('echo %1') do (@set a=%%i)
@echo %a%
@if "%a:~-4,4%"==".img" (echo "is image file") else echo "is not image file"
@if "%a:~-3,3%"==".so" (echo "is so file") else echo "is not so file"
@echo %1
@pause
---------------------------------------------------------------------------------------------------------------------------
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell]
[HKEY_CLASSES_ROOT\*\shell\AdbPush]
@="AdbPush"
[HKEY_CLASSES_ROOT\*\shell\AdbPush\Command]
@="F:\\video\\test.bat %1"
--------------------------------------------------------------------------------------------------------------------------