set "Mdy=%date:~5,2%-%date:~8,2%-%date:~,4%"
XCOPY Z:\2018 D:\record\2018\ /D:%Mdy% /E
@echo off
set set=D:\software\WeChat\WeChat.exe,D:\software\WeChat\WeChat.exe
for %%i in (%set%) DO start %%i
原文:https://www.cnblogs.com/GYoungBean/p/14925285.html