Windows CMD 命令汇总
- 查看当前目录下文件:dir
- 解压指令
- 解压.zip文件到当前目录:tar -xf 文件名
- 解压到指定目录:tar -xf 文件名.zip -C 目标路径
- 在 CMD 中可以直接调用 PowerShell 的
Expand-Archive
命令来解压.zip
文件。- powershell -command "Expand-Archive -Path '文件名.zip' -DestinationPath ."
- powershell -command "Expand-Archive -Path '文件名.zip' -DestinationPath '目标路径'"
- 删除非空文件夹
- rmdir /s 文件夹路径