H hehuan Unregistered / Unconfirmed GUEST, unregistred user! 2007-04-27 #1 比如:cmd /c mysqldump > c:/test-04-27.sql 但是如何会产生文件名字根据日期变化的文件?
X xxagri Unregistered / Unconfirmed GUEST, unregistred user! 2007-04-27 #2 只需这样: cmd /c mysqldump > c:/%date%.sql
风 风铃夜思雨 Unregistered / Unconfirmed GUEST, unregistred user! 2007-04-27 #4 把以下内容保存为批处理 @echo off Set CurDate=%date:~2,2%-%date:~5,2%-%date:~8,2% mysqldump > c:/test_%CurDate%.sql
把以下内容保存为批处理 @echo off Set CurDate=%date:~2,2%-%date:~5,2%-%date:~8,2% mysqldump > c:/test_%CurDate%.sql