Skip to content

Instantly share code, notes, and snippets.

@Scrxtchy
Created January 26, 2020 02:10
Show Gist options
  • Save Scrxtchy/f56baf61717e6e4a1d4855a9a75c5d8c to your computer and use it in GitHub Desktop.
Save Scrxtchy/f56baf61717e6e4a1d4855a9a75c5d8c to your computer and use it in GitHub Desktop.
@echo off
if [%~1]==[-w] goto :wireless
if [%~1]==[kill] goto :kill
goto :connect
:kill
D:\Scratch\Documents\Scrcpy\adb.exe kill-server
exit /b
:wireless
D:\Scratch\Documents\Scrcpy\adb.exe tcpip 5555
Echo Unplug Device
PAUSE
D:\Scratch\Documents\Scrcpy\adb.exe connect 192.168.0.69:5555
:connect
D:\Scratch\Documents\Scrcpy\scrcpy.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment