Here is the batch file attached.
REM Clears the screen
CLS
Echo OFF
REM delete MHT Report file older than 5 days
REM Launches TestExecute,
REM executes the specified project
REM and closes TestExecute when the run is over
ForFiles /p "C:\TE Results\Finance" /s /m *.mht /d -3 /c "cmd /c del @file"
tasklist /FI "IMAGENAME eq TestExecute.exe" 2>NUL | find /I /N "TestExecute.exe">NUL
if "%ERRORLEVEL%"=="0" taskkill /f /t /im testexecute.exe
"C:\Program Files (x86)\SmartBear\TestExecute 14\x64\Bin\TestExecute.exe" "C:\Users\nisgupta\Documents\TestComplete\IS\Finance\HSC\Budget Revision System\Budget Revision System HSC\BRS HSC\BRS HSC.mds" /run /exit /SilentMode
tasklist /FI "IMAGENAME eq TestExecute.exe" 2>NUL | find /I /N "TestExecute.exe">NUL
if "%ERRORLEVEL%"=="0" taskkill /f /t /im testexecute.exe
"C:\Program Files (x86)\SmartBear\TestExecute 14\x64\Bin\TestExecute.exe" "C:\Users\nisgupta\Documents\TestComplete\IS\Finance\TTU\PCARD Processing\PCARD Processing TTU\PCARD TTU\PCARD TTU.mds" /run /exit /SilentMode
tasklist /FI "IMAGENAME eq TestExecute.exe" 2>NUL | find /I /N "TestExecute.exe">NUL
if "%ERRORLEVEL%"=="0" taskkill /f /t /im testexecute.exe
"C:\Program Files (x86)\SmartBear\TestExecute 14\x64\Bin\TestExecute.exe" "C:\Users\nisgupta\Documents\TestComplete\IS\Finance\TTU\New FOP TTU\NEW FOP TTU\Finance NEW FOP TTU\Finance NEW FOP TTU.mds" /run /exit /SilentMode
tasklist /FI "IMAGENAME eq TestExecute.exe" 2>NUL | find /I /N "TestExecute.exe">NUL
if "%ERRORLEVEL%"=="0" taskkill /f /t /im testexecute.exe
"C:\Program Files (x86)\SmartBear\TestExecute 14\x64\Bin\TestExecute.exe" "C:\Users\nisgupta\Documents\TestComplete\IS\Finance\TTU\Interest Allocation\Interest Allocation TTU\Interest Allocation TTU\Interest Allocation TTU.mds" /run /exit /SilentMode
tasklist /FI "IMAGENAME eq TestExecute.exe" 2>NUL | find /I /N "TestExecute.exe">NUL
if "%ERRORLEVEL%"=="0" taskkill /f /t /im testexecute.exe
IF ERRORLEVEL 1001 GOTO NotEnoughDiskSpace
IF ERRORLEVEL 1000 GOTO AnotherInstance
IF ERRORLEVEL 127 GOTO DamagedInstall
IF ERRORLEVEL 4 GOTO Timeout
IF ERRORLEVEL 3 GOTO CannotRun
IF ERRORLEVEL 2 GOTO Errors
IF ERRORLEVEL 1 GOTO Warnings
IF ERRORLEVEL 0 GOTO Success
IF ERRORLEVEL -1 GOTO LicenseFailed
:NotEnoughDiskSpace
ECHO There is not enough free disk space to run TestComplete
GOTO End
:AnotherInstance
ECHO Another instance of TestComplete is already running
GOTO End
:DamagedInstall
ECHO TestComplete installation is damaged or some files are missing
GOTO End
:Timeout
ECHO Timeout elapses
GOTO End
:CannotRun
ECHO The script cannot be run
GOTO End
:Errors
ECHO There are errors
GOTO End
:Warnings
ECHO There are warnings
GOTO End
:Success
ECHO No errors
GOTO End
:LicenseFailed
ECHO License check failed
GOTO End
:End