Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.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
计算文件在Windows路径中的位置_Windows_Shell - Fatal编程技术网

计算文件在Windows路径中的位置

计算文件在Windows路径中的位置,windows,shell,Windows,Shell,如何确定调用哪个文件命令?例如,当我调用“python”时,我想知道系统是如何执行的 C:/Python27/python.exe (我正在Windows上工作,如果这有什么不同的话。)从命令行使用WHERE。对于您的特定示例:where python.exe从命令行使用where。对于您的特定示例:where python.exe您所说的“路径上的哪个文件”是什么意思?我想知道shell正在执行的windows路径中的哪个文件。(为了清楚起见,我编辑了这个问题-谢谢你的评论。)你说的“路径上的

如何确定调用哪个文件命令?例如,当我调用“python”时,我想知道系统是如何执行的

C:/Python27/python.exe


(我正在Windows上工作,如果这有什么不同的话。)

从命令行使用
WHERE
。对于您的特定示例:
where python.exe
从命令行使用
where
。对于您的特定示例:
where python.exe

您所说的“路径上的哪个文件”是什么意思?我想知道shell正在执行的windows路径中的哪个文件。(为了清楚起见,我编辑了这个问题-谢谢你的评论。)你说的“路径上的哪个文件”是什么意思?我想知道shell正在执行的windows路径中的哪个文件。(为了清晰起见,我编辑了这个问题——谢谢你的评论。)