为什么它打开命令提示符时,我开始EXCUTE hurry.bat? [英] Why does it open command prompt when i excute start hurry.bat?
问题描述
这是有关在批处理文件中的START命令。
This is about the START command in batch-files.
start notepad \\ opens the notepad but not the command prompt
start www.google.com \\ opens the google.com but not the command prompt
start hurry.bat\\ starts executing the batch file but opens the command prompt
为什么会这样?任何原因 ?谢谢你在前进。
Why so? Any reason ? Thank you in advance.
推荐答案
的notepad.exe
是一个图形用户inteface(GUI)程序:它与GUI用户交互并且不需要控制台窗口(命令提示符)。
notepad.exe
is a graphic user inteface (GUI) program: it interacts with the user in GUI and doesn't need the console window (command prompt).
www.google.com
是PTED作为互联网地址间$ P $,并以此来处理它(打开corresponging互联网网页)Windows调用默认浏览器,这是一个GUI程序太像记事本
,所以,再一次,没有命令提示符必要的。
www.google.com
is interpreted as an internet address, and in order to process it (open the corresponging internet page) Windows calls your default browser, which is a GUI program too, like notepad
, so, again, no command prompt needed.
现在,一个批处理文件仅仅是一个文本文件containg一组命令,脚本。它本身不能执行,需要的节目,以除$ P $的pte的命令。 CMD.EXE
(以下简称命令提示符)正是这是否作业的程序。
Now, a batch file is merely a text file containg a set of commands, a script. It cannot execute by itself and needs a program to interprete the commands. CMD.EXE
(the 'command prompt') is exactly the program that does that job.
这篇关于为什么它打开命令提示符时,我开始EXCUTE hurry.bat?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!