@echo off rem 所有要创建的目录 set dirs=E:\tmp\backup\a, E:\tmp\backup\b, E:\tmp\backup\c, E:\tmp\backup\d rem 创建不存在的目录 for %%i in (%dirs%) do ( if not exist %%i ( echo 创建目录:%%i md %%i ) )