- 创建文件夹
md "folder"
- 删除非空文件夹
rd "folder" /s/q
- 删除指定文件夹中的文件
del "folder"/*.* /s/q
- 复制指定文件或文件夹
xcopy "folder"/Source "folder"/Dest/ /s
xcopy "folder"/Source/*.* "folder"/Dest/ /s
- 遍历获取指定文件夹下所有文件夹名
@dir “Test" /b >test.txt
for /f "delims=" %%f in (”type test.txt“) do (
echo %%f
)
del test.txt