18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Shutdown Sahi.bat
Hi Team,
I have attached shutdown bat file for sahi for your reference. I hope it will help for others.
Save the following code in KillProcess.bat
echo
if "%1"=="" goto :eof
set Port1=%1
for /F "tokens=*" %%* in ('netstat -ano ^| find ":%Port1%"') do call :Sub %%*
goto :eof
:Sub
set line=%*
echo %line:~69,5%
taskkill /F /PID %line:~69,5%
and save the sahi_shutdown.bat following code
echo "Stopping Application"
KillProcess.bat 9999
echo "Application stopped."
Then click on sahi_shutdown.bat it will stop the sahi process.
Thanks,
Azhaguvel.A
I have attached shutdown bat file for sahi for your reference. I hope it will help for others.
Save the following code in KillProcess.bat
echo
if "%1"=="" goto :eof
set Port1=%1
for /F "tokens=*" %%* in ('netstat -ano ^| find ":%Port1%"') do call :Sub %%*
goto :eof
:Sub
set line=%*
echo %line:~69,5%
taskkill /F /PID %line:~69,5%
and save the sahi_shutdown.bat following code
echo "Stopping Application"
KillProcess.bat 9999
echo "Application stopped."
Then click on sahi_shutdown.bat it will stop the sahi process.
Thanks,
Azhaguvel.A
This discussion has been closed.
Comments
Thank you so much for sharing it!
Thank you for sharing it.
Regards
Sumitra