I found this snippet on stackoverflow:
Code:
mysqldump db_name table_name > table_name.sql
How do I write it into a mysql query if I wanted to save the output to e:\sql\alpha.sql?

I made this attempt, but no go:

Code:
mysql_query("mysqldump emily alpha > e:\sql\alpha.sql") or die(mysql_error());