@echo offset "Ymd=%date:~,4%%date:~5,2%%date:~8,2%"C:/mysql/bin/mysqldump --opt -u root --password=root dbname > E:/bak/db/dbname_%Ymd%.sql@echo on