How to run adb command through a script

Posted by Outride on Super User See other posts from Super User or by Outride
Published on 2014-06-07T02:14:07Z Indexed on 2014/06/07 3:32 UTC
Read the original article Hit count: 506

Filed under:
|
|

As the title says, I'm trying to find how to run adb commands through a pre-written script (such as how .bat and .vbs files work) so I can make a semi automatic program to pull some files from my android phone whenever I click on the launch.bat which launches a line of program to go through the phone and find certain files.

I know the script line:

adb pull /data/data/kik.android/databases/ %drive%\All\Database

This copies all the files in this specific database into the flash drive's folder "Database" under the "All" folder. But, how could i make it so that the adb program looks through the phone and finds other files, and how could i pull the specific files, rather than pulling the entire folder?

© Super User or respective owner

Related posts about command-line

Related posts about script