Mysql Command line Parameter passing to sql file
Try something like

echo set @tmp='abc'; &gt; %temp%\temp.sql
copy /b %temp%\temp.sql+d:/v_test1.sql
mysql -u root -p xyz &lt; %temp%\temp.sql
del %temp%\temp.sql