18 January 2026:


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

Azhaguvel.AAzhaguvel.A Members
edited November -1 in Sahi - Open Source
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

Comments

This discussion has been closed.