采用隐藏式的cmd.exe打开应用程序 [英] Open application with hidden cmd.exe

查看:584
本文介绍了采用隐藏式的cmd.exe打开应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要打开Android虚拟设备,我被推荐到添加快捷方式或下一行的批处理文件:

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

然而,当我这样做,这将打开一个命令行窗口,如果我附近错误(有什么经常因为我有很多命令行窗口的工作对调试应用程序),它也关闭AVD模拟器。

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.

我想打开AVD没有命令行窗口,以prevent这一点,我建议这样做与 CMD / C 启动开头,但它不工作要么。任何人都可以告诉我,我应该怎么办呢?

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?

推荐答案

您可以使用VBScript来打开隐藏在命令提示符窗口

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

如果您保存为 .VBS ,并确保替代 C:与位置\\ batchfile.bat 你的,这将运行命令隐藏起来。

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.

这篇关于采用隐藏式的cmd.exe打开应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆