Based (and thanks) on alextooter's answer and edited by Mana Hannah
I came up with this:
On Windows, you can use this command line:
for %f in (C:\your_app_path\*.apk) do adb install "%f"
In the batch file:
instead, you can use %% f and "%% f", and after long hours of working on it, I came up with this pretty neat solution in a batch file:
@echo Preparing to install all .apk files in "C:\My Hardware\Cell Phone\APKs\" folder to device @pause @for /f "delims=|" %%f in ('dir /b "C:\My Hardware\Cell Phone\APKs\"*.apk') do @"C:\My Hardware\Cell Phone\ADB\adb.exe" install -r "C:\My Hardware\Cell Phone\APKs\%%f" @echo End of Batch File @pause
This batch file gave this result, [notice a couple of errors, because there are unconventional characters in the file name (™ trade Mark Char and the "&" character), but nothing to worry about, this will be a different topic.]
[Last remark. The source address of the folders was much longer than "my equipment", and it was edited for illustrative purposes only, if it had been forgotten to edit in some other lines, then keep in mind. This has been tested three times, but in any case no one knows.]
therefore, using the "Screen Output" function:
Preparing to install all .apk files in "C:\My Hardware\Cell Phone\APKs\" folder to device Press any key to continue . . . 2119 KB/s (3730200 bytes in 1.718s) pkg: /data/local/tmp/AdAway_v3 (04-2015).apk Success 2349 KB/s (39102487 bytes in 16.250s) pkg: /data/local/tmp/Amazon Kindle_4.13.0.203_1144258763.apk Success 1681 KB/s (591738 bytes in 0.343s) pkg: /data/local/tmp/Apk Extractor_3.04.apk Success 1824 KB/s (2685472 bytes in 1.437s) pkg: /data/local/tmp/CCleaner_v1.11.43_71411143.apk Success 1433 KB/s (22935 bytes in 0.015s) pkg: /data/local/tmp/Contenidos_1.0_1.apk Success can't find 'C:\My Hardware\Cell Phone\APKs\Digital clock XperiaT_3.8.0.96_96.apk' to install 2955 KB/s (189128 bytes in 0.062s) pkg: /data/local/tmp/DiskUsage_3.5.3_3053.apk Success 1761 KB/s (873714 bytes in 0.484s) pkg: /data/local/tmp/Galactic Core Free_2.41_43.apk Success 2619 KB/s (11988685 bytes in 4.468s) pkg: /data/local/tmp/Gmail_5.3.95312851_53000576.apk Success 2380 KB/s (2856307 bytes in 1.171s) pkg: /data/local/tmp/Goggles_1.9.4_211.apk Success 2555 KB/s (38071805 bytes in 14.546s) pkg: /data/local/tmp/Google App_4.7.13.19.arm_300412076.apk Success 2467 KB/s (23850128 bytes in 9.437s) pkg: /data/local/tmp/Google Keyboard_4.1.22063.1974169_22063.apk Success 2682 KB/s (9999424 bytes in 3.640s) pkg: /data/local/tmp/Google Play Books_3.4.9_30409.apk Success 2141 KB/s (13604976 bytes in 6.203s) pkg: /data/local/tmp/Google Play Games_3.1.11 (2044178-030)_31110030.apk Success 2689 KB/s (9640324 bytes in 3.500s) /system/bin/sh: TV_3.8.8_38081.apk: not found /system/bin/sh: TV_3.8.8_38081.apk: not found 2761 KB/s (17101587 bytes in 6.046s) pkg: /data/local/tmp/Google Play Music_6.0.1945S.2039625_1945.apk Success 2694 KB/s (7631202 bytes in 2.765s) pkg: /data/local/tmp/Google Play Newsstand_3.2.0_2014040406.apk Success 2371 KB/s (41779806 bytes in 17.203s) pkg: /data/local/tmp/Google Play services_7.5.74 (1997312-030)_7574030.apk Success 2759 KB/s (13424078 bytes in 4.750s) pkg: /data/local/tmp/Google Text-to-speech Engine_3.4.6.1819666.arm_2103 04060.apk Success 2448 KB/s (34089466 bytes in 13.593s) pkg: /data/local/tmp/Google+_5.8.0.96635860_414049433.apk Success 2499 KB/s (20197317 bytes in 7.890s) pkg: /data/local/tmp/Hangouts_3.3.94322993_22401362.apk Success 2371 KB/s (13280248 bytes in 5.468s) pkg: /data/local/tmp/Keep_3.1.204.00_3120400.apk Success 2672 KB/s (20566942 bytes in 7.515s) pkg: /data/local/tmp/Maps_9.10.1_910100121.apk Success 2292 KB/s (5759074 bytes in 2.453s) pkg: /data/local/tmp/Nova Launcher_4.0.1_40100.apk Success 2515 KB/s (3098485 bytes in 1.203s) pkg: /data/local/tmp/Santa Biblia Reina Valera 1960_1.5.3_40.apk Success 2769 KB/s (4918721 bytes in 1.734s) pkg: /data/local/tmp/TalkBack_4.2.0_40200008.apk Success 1857 KB/s (564672 bytes in 0.296s) pkg: /data/local/tmp/Terminal Emulator_1.0.70_71.apk Success 2266 KB/s (1160352 bytes in 0.500s) pkg: /data/local/tmp/Tinycore_3.2.2_22.apk Success 2221 KB/s (12048716 bytes in 5.296s) pkg: /data/local/tmp/WALKMAN_8.3.A.0.2.apk Success 1667 KB/s (18543284 bytes in 10.859s) pkg: /data/local/tmp/WhatsApp_2.12.158_450540.apk Success End of Batch File Press any key to continue . . .
Osman vielma
source share