d:
cd D:\mysql-5.7.19-winx64\bin
set week=%DATE:~-1%
if %week%==日 mysqldump -hlocalhost -uroot -ppassward king table> BackupName.sql
if %week%==日 mysql -hlocalhost -uroot -ppassward burger_king_ba< BackupName.sql
@echo off 去掉 代碼内容 !只留下結果