@echo off
setlocal enabledelayedexpansion
clscolor 17
@title 安裝多裝置程式 by qiuranke 2012-08-14
:menu
echo. =-=-=-=-=安裝多裝置程式選單=-=-=-=-=
echo.
echo. 1 執行adb start-server 等待裝置接入
echo.
echo. 2 結束adb start-server
echo.
echo. 3 安裝此目錄下的所有apk
echo.
echo. 4 刪除dellist.txt中的所有apk
echo.
echo. 5 檢視列表
echo.
echo. 6 檢視包資訊
echo.
echo. 7 退出
echo.
echo. 請輸入選擇專案的序號並按回車鍵執行:
:0set /p xuanxiang=
if "%xuanxiang%"=="1" goto 1
if "%xuanxiang%"=="2" goto 2
if "%xuanxiang%"=="5" goto 5
if "%xuanxiang%"=="6" goto 6
if "%xuanxiang%"=="7" goto 7
goto 0
:1echo 判斷adb是否執行
tasklist /m adb* |find "adb.exe"&&echo adb已經執行&&goto 0
adb start-server
echo adb已經執行
goto 0
:2tasklist /m adb* |find "adb.exe"&&taskkill /f /im adb.exe&&echo adb已經終止&&goto 0
echo adb未執行
goto 0
:3adb devices >list.txt
for /f "delims=" %%a in ('findstr "^.*^ device$" list.txt')do (
set str=%%a
for /f "delims=" %%i in ('dir /b *.apk') do (
echo adb -s !str:~0,-7! install -r "%%i"
start adb -s !str:~0,-7! install -r "%%i"
) )del list.txt
goto 0
:4adb devices >list.txt
for /f "delims=" %%a in ('findstr "^.*^ device$" list.txt')do (
set str=%%a
for /f "delims=" %%i in (dellist.txt) do (
echo adb -s !str:~0,-7! uninstall "%%i"
start adb -s !str:~0,-7! uninstall "%%i"
) )del list.txt
goto 0
:5adb devices
goto 0
:6for /f "delims=" %%i in ('dir /b *.apk') do (
aapt d badging "%%i" >apkinfo.txt
for /f "delims=" %%s in ('findstr "package: name=\'*\' versioncode=" apkinfo.txt') do (
echo package "%%s"
) del apkinfo.txt
) goto 0
:7
需要如下:
adb.exe
aapt.exe
adbwinapi.dll
adbwinusbapi.dll
Android安裝解除安裝程式解析
因為根據裡面的許可權我們可以 從sd卡安裝乙個程式 intent intent new intent intent.action view 或者 startactivity intent android安裝解除安裝程式的操作中要想解除安裝乙個程式 intent uninstallintent new...
Linux安裝 解除安裝
configure作用 是原始碼安裝軟體時配置環境用的 他根據你的配置選項和你的系統情況生成makefile檔案 為make 做準備 最常用的引數 configure prefix 作用 不指定prefix,則可執行檔案預設放在 usr local bin,庫檔案預設放在 usr local lib...
ruby 安裝解除安裝
首先執行以下命令 yum install ruby yum install ruby devel yum install rubygems gem update system gem install rdoc gem install rails gem install bundler gem sea...