DOS下批量处理文件脚本

@echo off
set SOURCE_DIR=e:\download\src
set TARGET_DIR=e:\download\dst
set CONVERT_TOOL=convert.exe
for /r %SOURCE_DIR% %%i in (*) do if not exist %TARGET_DIR%%%~pi mkdir %TARGET_DIR%%%~pi
for /r %SOURCE_DIR% %%i in (*) do %CONVERT_TOOL% %%i %TARGET_DIR%%%~pni.tif
pause 

©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页