Doing
mysql -uroot -p -e source F:\code\mysql\mysql-data\myHfs\test.sql
gives : ERROR 1049 (42000): Unknown database 'f:\code\mysql\mysql-data\myhfs\test.sql'
But if i go inside the mysql command promt with just the mysql -uroot -p and then type in source F:\code\mysql\mysql-data\myHfs\test.sql , i get the proper output.
the content of the above file being :
use gregs_list;
show tables;
select * from clown_info;
Edit : doing mysql -uroot -p < "F:\code\mysql\mysql-data\myHfs\test.sql" -t seems to solve the problem.