Issue
To open an Android Virtual Device, I was recommended to add a shortcut or a batch file with the next line:
C:\android-sdk\tools\emulator.exe -avd MyAVD
Nevertheless, when I do so, this opens with a command line window, which if I close by error (Something frequently since I work with many command line windows for debugging the apps), It also closes the AVD emulator.
I want to open the AVD without the command line window, to prevent this, I was recommended to do so with cmd /c
or with start
at the beginning, but it isn't working either. Anyone can tell me how should I do this?
Solution
You can use a VBScript to open the command prompt window hidden
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run("C:\batchfile.bat"), 0, True
If you save that as .vbs
and make sure to replace C:\batchfile.bat
with the location of yours, this will run the command hidden.
Answered By - Bali C
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.