在午夜之后,我每天必须从前一天复制记录。
Log names are in format exYYMMDD.log. So today (22.10.2011) I would have to copy file named ex111021.log into some directory.
是否有可能用批量书写? 如果我不能够使用权力,但宁愿不在我的服务器上安装。
Edit: With help of Siva Charan I created this (polish win7 - echo %date% prints YYYY-MM-DD)
set /a yest_Day = %date:~8,2%-%var:~-2,1%
copy ex%date:~2,2%%date:~5,2%%yest_Day%.log targetDir