鉴于大家对其他类别十分关注,我们编辑小组在此为大家搜集整理了“BAT批处理获取系统时间”一文,供大家参考学习
set filename=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%echo %filename%下面这个文件添加的任务计划中,可以每天自动备份mysql数据库backup.batset filename=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%d:\mysql\bin\mysqldump dbname>d:\backup\%filename%.sql