From b5acf765b0f1ba4af30c0b590aae39374cc477a1 Mon Sep 17 00:00:00 2001 From: NewBit <37043777+newbit1@users.noreply.github.com> Date: Mon, 12 Sep 2022 11:25:02 +0200 Subject: [PATCH] Added double Click on bat Feature This little feature helps to open the cmd shell just by double-clicking the bat file. It keeps the window open and changed already to the right path --- rootAVD.bat | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rootAVD.bat b/rootAVD.bat index 269b8cc..18e8113 100644 --- a/rootAVD.bat +++ b/rootAVD.bat @@ -319,6 +319,7 @@ call :_Exit 2> nul set InstallPrebuiltKernelModules=%false% set ListAllAVDs=%false% set InstallApps=%false% + set NOPARAMSATALL=%false% REM While debugging and developing you can turn this flag on echo.%params%| FIND /I "DEBUG">Nul && ( @@ -361,6 +362,11 @@ call :_Exit 2> nul ) ELSE IF "%2"=="InstallPrebuiltKernelModules" ( set InstallPrebuiltKernelModules=%true% ) + + IF "%params%"=="" ( + REM No Parameters SET at all + set NOPARAMSATALL=%true% + ) exit /B 0 :installapps @@ -509,5 +515,8 @@ call :_Exit 2> nul exit /B 0 :_Exit +if %NOPARAMSATALL% ( + cmd /k +) () goto :eof