Install APKs bat script

This commit is contained in:
chteufleur 2015-09-09 18:07:34 +02:00
parent 5362627f35
commit cf3ad1cc32
2 changed files with 13 additions and 1 deletions

10
Bat/installAPKs.bat Normal file
View File

@ -0,0 +1,10 @@
set adb=.\adb.exe
set apks=.\apks\*.apk
for %%X in (%apks%) do (
echo Installation de %%X
%adb% install %%X
)
pause

View File

@ -1,5 +1,7 @@
/**
* Check is the given string is an IP adresse.
*/
public static boolean isIp(String ip) { public static boolean isIp(String ip) {
return ip != null && !ip.equals("") && ip.matches("^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"); return ip != null && !ip.equals("") && ip.matches("^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$");
} }