Windows定时执行某命令,并按照日期生成文件-日常笔记

将类似以下内容保存至abc.bat中,然后添加至windows计划任务即可:

C:\WINDOWS\system32\drivers\etc>exp xxx file=c:\f_db_%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%.dmp