Windows Bat 批量提取指定类型文件

@echo off
echo start copy...
for /f "delims==" %%a in ('dir /b /s G:\����\50001\assets\resources\*.mp3')do copy /y "%%a" G:\new_mp3_\
echo finish
pause

 

使用bat批处理命令如果路径、文件名含有中文的话,就无法识别了,但是可以通过转码来解决这个问题;
默认的bat的编码格式是UTF-8,只需将其转换成 ANSIC 即可;

使用记事本的 另存为就好了

递归 删除 指定类型文件
del /s 类型
del /s *.meta

posted @ 2022-10-28 15:57  lesten  阅读(703)  评论(0编辑  收藏  举报