Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
“为什么?”;启动firefox“;命令是否在Windows命令提示符下工作?_Windows_Batch File_Cmd - Fatal编程技术网

“为什么?”;启动firefox“;命令是否在Windows命令提示符下工作?

“为什么?”;启动firefox“;命令是否在Windows命令提示符下工作?,windows,batch-file,cmd,Windows,Batch File,Cmd,我很好奇为什么像“启动iexplore”和“启动firefox”这样的命令可以在Windows cmd中工作。 它们不是独立的命令。如果您尝试只键入“firefox”,您将得到: “'firefox'未被识别为内部或外部命令, 可操作的程序或批处理文件。” 由此得出结论,这是“启动”命令的一种特殊行为。 我的第一个猜测是,它的工作方式与%path%变量的使用方式类似,因为它具有要搜索的已知目录。 我通过尝试为另一个与firefox位于同一目录下的可执行文件运行“start[executable]

我很好奇为什么像“启动iexplore”和“启动firefox”这样的命令可以在Windows cmd中工作。 它们不是独立的命令。如果您尝试只键入“firefox”,您将得到: “'firefox'未被识别为内部或外部命令, 可操作的程序或批处理文件。”

由此得出结论,这是“启动”命令的一种特殊行为。 我的第一个猜测是,它的工作方式与%path%变量的使用方式类似,因为它具有要搜索的已知目录。 我通过尝试为另一个与firefox位于同一目录下的可执行文件运行“start[executable]”来轻松排除这种可能性

我的结论是,在我的计算机上的某个地方有一个指定文件路径的列表,只需在“start”命令后键入它们的文件名,而不是整个路径,就可以启动这些路径

想象一下,能够在这个列表中添加一些东西的潜力。。 有人知道我在哪里可以找到它吗?

它在注册表中

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\
在该键下,可以调用已定义的应用程序,而无需更改path环境变量

通常的调用(在命令行中键入名称)不会在此列表中搜索,而是调用
start
命令、windows
Run
对话框或从任何使用
ShellExecute
ShellExecuteEx
API调用的对象调用,将检查此列表中定义的应用程序。

-查找应用程序可执行文件