Finding a simple way to run the adb command. I would like through, for example, a shortcut on the desktop. I'm currently running adb and typing there command

adb connect 192.168.43.1

It is long and uncomfortable. Once I managed to run the netsh command to create an access point through a shortcut, but I tried it with adb and it did not work for me.

Also I will be glad and other ways to quickly launch the mentioned command.

  • one
    .bat; .cmd file you can write, there you can drive console commands - Jaroslav Movchan

1 answer 1

Create a bat file on your desktop with the contents:

adb connect 192.168.43.1

according to the documentation, it works that way. It may be necessary to specify the -H parameter https://developer.android.com/studio/command-line/adb.html#howadbworks