mysql --host *HOST* --p --user *USERNAME* -e "query" > file.lst
pause
My code looks as above. Is there a way to rename the file.lst
and add sysdate at the end and make it like file19072016.lst
? Assume that the date needs to be changed everyday and the file is run everyday.