What is the command used inside .bat file to run the testng.xml

open notepad and paste this command-

java -cp bin;jars/* org.testng.TestNG testng.xml

where jars is the folder inside your proj which has all the jars file.
and save this file as filename.bat
and keep this file in side your project.