As you have not indicated what is wrong with the answer provided, here's a similar answer, (please note that this is completely untested):
@Echo Off
Rem modify as necessary
Set "buDest=C:\backup\database"
Set "dbName=db"
Set "dbPass=root"
Set "dbUser=root"
Rem If binaries are not in %CD% or %PATH% modify the Set line below
Rem Example: Set "sqlBin=C:\Program Files\MySQL\MySQL Server 5.5\bin"
Set "sqlBin=."
Set "dStamp="
For /F "Tokens=1-3 Delims=/ " %%A In ('RoboCopy/NJH /L "\|" Null') Do If Not Defined dStamp Set "dStamp=%%A_%%B_%%C"
If Not Exist "%buDest%\" MD "%buDest%" 2>Nul || Exit /B
"%sqlBin%\mysql" --user=%dbUser% --password=%dbPass% -D %dbName% -Bse "Show Tables";|^
For /F "Skip=3 Delims=| " %%A In ('FindStr "^|"') Do (
mysqldump --user=%dbuser% --password=%dbpass% %%A >"%buDest%\%dbName%-%%A-%dStamp%.sql")
Just ensure that the value data on lines 3, 4, 5, 6 and possibly 9 is modified as necessary
mysqldump -T [dir_name]option working for you? You get separate structure (.sql) and data (.txt) files, but still easy to import...