【发布时间】:2011-06-30 08:21:25
【问题描述】:
我正在编写一个程序来列出 Windows 目录中的所有文件。我只是使用提供的那些文件管理功能,但我对结果很好奇:
Target file is *.*
The first file found is .
The next file found is ..
The next file found is file0
The next file found is file1
...
...
The next file found is fileN
所以从技术上讲,这些“。”是什么?和 ”..” ?我记得我在 cmd 中使用“cd ..”退出到上层目录。对于“cd .”,我不知道它是干什么用的。
【问题讨论】:
-
"。"表示当前目录,您在哪里使用 Windows 资源管理器/总指挥官或其他文件管理器,其中“..”表示您所说的向上一级目录的命令。