windows - Looping a batch file that calls another batch file -


my embedded c compiler generates batch file run various build outputs in processor simulator command line. i'd create batch file call auto generated batch file somewhere convenient, , i'd able rerun clicking key want day long.

here's i've tried

cd "c:\foo\project name\settings\" :repeat cls "project name.unit test ouput.cspy.bat" & pause goto repeat 

i see output expect batch file, followed a:

press key continue . . .

when press enter script ends , never executes goto. if remove pause statement script ends immediately. if type & goto repeat script still ends immediately.

cding batch file command line, running it, , click arrow , enter want... trying automate tiny bit more.

to run batch file batch file, have use call statement. if don't, outer batch file end when inner 1 does.

call "project name.unit test ouput.cspy.bat" & pause 

Comments

Popular posts from this blog

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -