1. Open the Winows menu, enter the cmd command, click OK, and enter command mode.
2. Enter Command D: (the D here indicates that your SDK is stored under the disk)
then enter the CD
3. Then select your SDK path and copy the path.
4. Click cmd on the mouse, select Edit, paste the copied path into the
command line Enter.
5. Then enter the command adb start-service to open adb.
appears, which means that the ADB service is successful and you can use the ADB command.
6. Use the ADB shell command . ---into adb shell (script)
Original: http://jingyan.baidu.com/article/60ccbceb634e2364cab197c6.html
The above practice, too troublesome, every time to start the ADB, under normal circumstances, set the environment variable is good . steps:1. Copy the path of ADB:
2.WIN10: This computer right----> Properties---> Advanced system settings---> Environment variables---> 3.The copied address is added to the back ., remember that the semicolon is in the English state. That's all you can do. Effect:
How to use adb/enter ADB shell (script) in command mode