How to run a mysqldump from a .txt or .sql file inside a command line window? If I run the follow line directly in command line window it will works good. 

C:\xampp\mysql\bin&gt;mysqldump -u root d3bi&gt;C:\Users\me\Desktop\test\testDump.sql


How can I run a .txt or .sql file named testDump.txt or testDump.sql from my cmd line window?
Inside this file we will have the same line:

C:\xampp\mysql\bin&gt;mysqldump -u root d3bi&gt;C:\Users\me\Desktop\test\testDump.sql
The commandline mysql allows \! to do what you want, but you appear to be in Windows, which does not really allow for such a feature.

So, No, you can't do it.

For reading INSERT statements (etc) back in there is the source command.

Can you turn things inside out?  You can get a list of databases, or otherwise create MySQL commands, from 

mysql ... -e "statement..."


and you redirect that to a .bat file, which could then be executed.

It seems like you need a .bat file.