Disable console output when executing a SQL file using MySQL source command
Here is the problem. The OS has two modes to print things


stdout
stderr


The --silent  only affects stdout. How do you nail stderr?

Try one of the following, and see if it works:

mysql --user=myusername --password=mypassword --silent --force -b 2&gt; nul
mysql --user=myusername --password=mypassword --silent --force -b --tee=nul


Give it a Try !!!

CAVEAT : I have dealt with something this before when answering a question about mysqldump : How to log verbose output from mysqldump?