SET EXE=%2
start %1%EXE%
timeout /t %3

FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% taskkill /im %EXE% /f & exit /b 1
exit /b %errorlevel%
Add Batch File for Automated Testing with timeout
Add Batch File for Automated Testing with timeout

On Windows...
Param1 (%1) is The Path to the Directory, Param2 (%2)
the exe name, Param3 (%3) the timeout in seconds.
