Skip to content

Instantly share code, notes, and snippets.

@gavinblair
Created November 13, 2012 18:37
Show Gist options
  • Save gavinblair/4067550 to your computer and use it in GitHub Desktop.
Save gavinblair/4067550 to your computer and use it in GitHub Desktop.
open weinre server and page in chrome
@echo off
set ip_address_string="IPv4 Address"
for /f "usebackq tokens=2 delims=:" %%f in (`ipconfig ^| findstr /c:%ip_address_string%`) do (
start C:\Users\User\AppData\Local\Google\Chrome\Application\chrome.exe http://%%f:8080
"C:\Program Files (x86)\nodejs\node.exe" node_modules\weinre\weinre\ --boundHost -all-
goto :eof
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment