1、dir列出当前目录下的文件和文件夹。
dir /s /b
/s 显示子目录,/b 纯净模式(只显示文件名路径)。
2、cd切换目录。
cd C:\Users\Admin\Desktop
3、copy / xcopy
文件复制命令,比拖拽好用。
xcopy D:\data\*.* E:\backup\ /s /e /y
/s 复制目录结构,/e 包含空目录,/y 不提示直接覆盖。
4、del / rd删除文件/文件夹。
del test.txt
rd /s /q folder_name
5、attrib查看或修改文件属性(隐藏、只读等)。
attrib +h +r secret.txt

