echo "wait-for-device..."
C:\Windows\System32\adb wait-for-device
echo "The device is connected, pull working..."
echo $(get-date)
$date1 = get-date -format "yyyy-MM-dd"
$date2 = get-date -format "HH-mm-ss"
If(!(Test-Path E:\LOG\$args\$date1)){
mkdir "E:\LOG\$args\$date1"
}
C:\Windows\System32\adb pull data/debuglogger "E:\LOG\$args\$date1\$date2"
echo "pull finished"
ii "E:\LOG\$args\$date1\$date2"
echo "open file finished"