
CODE: [Copy to clipboard][ Last edited by upsco on 2007-11-23 at 11:19 PM ]set int_date=%date:-=%
set /a int_new_date=int_date-1
pushd "f:\gjsj\"
for /f %%a in (list.txt) do set int_max=%%a
for /d %%i in ("*") do (
if %%i gtr %int_max% (copy %%i e:\etl\etldata\gj\%%i)
)
echo int_new_date>list.txt
popd
CODE: [Copy to clipboard]set int_date=%date:-=%
set /a int_new_date=int_date-1
pushd "f:\gjsj\"
for /f %%a in (list.txt) do set int_max=%%a
for /d %%i in ("*") do (
if %%i gtr %int_max% (
if not exist e:\etl\etldata\gj\%%i\ md e:\etl\etldata\gj\%%i\
copy %%i e:\etl\etldata\gj\%%i\)
)
echo %int_new_date%>list.txt
popd
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |