DOS 環境下的「目錄」對應 Windows 的「資料夾」,但以文字模式呈現。掌握 DIR 指令與 8.3 命名規則,是操作 DOS 的基礎。
DIR
在提示字元輸入 dir 按 Enter,螢幕列出所有項目:
dir
<DIR>
格式:主檔名.副檔名
主檔名.副檔名
.
範例:AUTOEXEC.BAT、CONFIG.SYS。
AUTOEXEC.BAT
CONFIG.SYS
輸入 dir dos 即可列出 DOS 目錄下的檔案。
dir dos