Created
October 11, 2012 15:14
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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