Skip to content

Instantly share code, notes, and snippets.

@nlehuen
Created October 11, 2012 15:14
Show Gist options
  • Save nlehuen/3873139 to your computer and use it in GitHub Desktop.
Save nlehuen/3873139 to your computer and use it in GitHub Desktop.
Replacement for Manymo Command Line tool, see http://www.manymo.com/documentation/command-line-tool.html
@echo off
rem Replacement for Manymo Command Line tool
rem See http://www.manymo.com/documentation/command-line-tool.html
if "%1"=="tunnel" goto :TUNNEL
:ERROR
echo Commands :
echo manymo tunnel port:host:password
goto :END
:TUNNEL
for /f "tokens=1-3 delims=:" %%i in ("%2") do ( set /a l=%%j+1 && start plink -N -pw %%k -L %%j:localhost:%%j -L %l%:localhost:%l% adb%%j@%%i && echo Once connected, launch : && echo adb connect localhost:%%j)
:END
rem KTHXBY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment