我将文件从源复制到目标的代码是
set "source=C:\Documents and Settings\My Documents\msword"
set "dest=D:\Test"
pushd "%source%" ||(
echo.Source does not exist&pause&goto EOF)
for /f "tokens=*" %%f in (
'dir /A-D /OD /B') Do set "file=%%f"
popd
xcopy /s /d /e "%source%\%file%" "%dest%\"
我想编写脚本,将当前日期创建的文件和同一天更新的任何先前文件复制到其他驱动器文件夹,包括具有相同的目录结构。但它应该只存储当前日期和更新文件......