<!-- :
@echo off && mode 050,03 && title <nul && title .\%~nx0 && for /f ^tokens^=* %%i in ('
%__APPDIR__%wScript.exe "%~dpnx0?.wsf" @Pixel_2_API_29 ^& 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>
- 注意:
您可以在
此链接
中了解有关混合批处理的更多信息,并查看一些示例代码/文件。
"arg1 arg2 ag3" <==> " -memory 4096" obs.: 3rd line in code!
<!-- :
@echo off && mode 050,03 && title <nul && title .\%~nx0 && for /f ^tokens^=* %%i in ('
%__APPDIR__%wScript.exe "%~dpnx0?.wsf" @Pixel_2_API_29 " -memory 4096"^>nul')do exit/b
--> <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)&Chr(34)&WScript.Arguments(1)&Chr(34), 0, False:
Set WshShell=Nothing</script></job>
sc create "AVD emulator" start=demand displayname= "AVD emulator" binpath="C:\Users\<username>\Desktop\Run emulator.bat"
创建服务,但不幸的是它无法启动,收到 Error 1053: The service did not respond to the start or control request in a timely fashion
错误。 - user12531529
emulator @Pixel_2_API_29 -memory 4096
? - user12531529