I'm creating a simple .bat
file to open Android emulator from a new command prompt window and then print a value in the first window. However the function :Display
seems doesn't get executed. When I click on .bat
file, new prompt is opened and emulator is started but the first window is immediately closed. How can I make first window execute the :Display
function?
cd "C:/Users/Pavindu/Downloads/Sdk/emulator"
start cmd /k emulator -avd Nexus_S_API_28
call :Display
:Display
echo. here the myDosFunc function is executing a group of commands
echo. it could do a lot of things