Skip to content

Instantly share code, notes, and snippets.

@Ademking
Created April 4, 2020 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ademking/b4b9d65f8567597988c8901343e30ac3 to your computer and use it in GitHub Desktop.
Save Ademking/b4b9d65f8567597988c8901343e30ac3 to your computer and use it in GitHub Desktop.
Run Android Emulator directly ( without a console window )

Don't forget to rename your avd. In this example "Pixel_2_API_27"

<!-- :
@echo off && mode 050,03 && title <nul && title .\%~nx0 && for /f ^tokens^=* %%i in ('
%__APPDIR__%wScript.exe "%~dpnx0?.wsf" @Pixel_2_API_27 ^& cls ') do exit /b 2>nul >nul
--> <job> <script language = "vbscript"> Set WshShell =CreateObject( "WScript.Shell" )
WshShell.Run chr(34)&"%userprofile%\AppData\Local\Android\Sdk\emulator\emulator.exe"&_
Chr(34)&WScript.Arguments(0)&Chr(34), 0, False: Set WshShell = Nothing </script></job>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment