命令提示符

cmd2026-08-24 19:46:25

命令提示符(Command Prompt)也称为CMD,是 Windows 最基本的命令行工具,可以执行各种系统命令和批处理脚本。

常用命令

  1. dir:列出当前目录下的文件和文件夹。
    dir
    
  2. cd:改变当前目录。
    cd \path\to\directory
    
  3. copy:复制文件。
    copy source.txt destination.txt
    
  4. del:删除文件。
    del filename.txt
    
  5. move:移动或重命名文件。
    move oldname.txt newname.txt
    
  6. mkdir:创建新目录。
    mkdir new_directory
    
  7. rmdir:删除目录。
    rmdir directory_name
    

本页目录