Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.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
Tree 树命令行不工作_Tree_Command_Line - Fatal编程技术网

Tree 树命令行不工作

Tree 树命令行不工作,tree,command,line,Tree,Command,Line,我试图在命令行中键入tree,但它无法识别该命令。我正在运行Windows 10。任何人都知道这是为什么吗?您可以尝试将System32文件夹(例如“C:\Windows\System32”或“%SystemRoot%\System32”)添加到PATH变量中。tree.com位于C:\Windows\System32,但您的PATH变量中可能有%SystemRoot%\System32,否则太多也不行。 由于扩展名不是.exe,我假设您的PATHEXT环境变量缺少.COM,我的意思是应该将其移

我试图在命令行中键入tree,但它无法识别该命令。我正在运行Windows 10。任何人都知道这是为什么吗?

您可以尝试将System32文件夹(例如“
C:\Windows\System32
”或“
%SystemRoot%\System32
”)添加到PATH变量中。

tree.com位于
C:\Windows\System32
,但您的
PATH
变量中可能有
%SystemRoot%\System32
,否则太多也不行。
由于扩展名不是
.exe
,我假设您的
PATHEXT
环境变量缺少
.COM

,我的意思是应该将其移动到superuser.COM。
C:\>tree
'tree' is not recognized as an internal or external command,
operable program or batch file.
C:\>