你调用了 adb shell
之后执行的命令回显管道已经没有了
你可以试着如下
举例
@
echo off
:begin
adb disconnect
set input=
set /p input=please input your device IP:
adb connect %input%
echo rooting this device!
adb root
echo remounting
adb remount
adb shell content query --uri content://telephony/carriers/preferapn
echo replace APNs config file
adb push apns-conf.xml /system/etc
adb push apns-conf.xml.bakforspec /system/etc
echo restoring default APN
adb shell "content delete --uri content://telephony/carriers/restore"
echo this device id is
adb shell "settings get secure android_id"
echo show file stat
adb shell "busybox stat /system/etc/apns-conf.xml"
adb shell "busybox stat /system/etc/apns-conf.xml.bakforspec"
echo press any key for continue!
pause>nul
goto begin