Using this command in ADB I copy all the files from the folder to my PC

adb pull data/app C:/Users/Admin/Desktop

How can this be done programmatically?

  • how about the batch file with the execution of this command? - Yurii Manziuk
  • @YuriiManziuk, in a sense? create a baht file and save this command inside? - java
  • Yes exactly. then there is no need to write it to the console every time - just run the file - Yurii Manziuk
  • @YuriiManziuk, and then how do I run it with java, by program I mean with java code - java
  • I'm not a great java specialist, but I am sure that there is some kind of system function that allows you to execute console commands. and the team can be a launch or a batch file, or the copy command is already specified - Yurii Manziuk

1 answer 1

Solved the problem as suggested by YuriiManziuk created a batch file, now there is no need to write it to the console every time - just run the file