Get the App
SLTechnology News&Howtos  ›  Servers  › 

The BAT script gets the pid through the port number and ends the process

Shulou Source: shulou.com Published: 2022-06-03 08:42:26 09月21日 Update

For / f "tokens=5" an in ('netstat / ano ^ | findstr 8088') do taskkill / F / pid% a

/ / for loop, extract the fifth field (from the result of the command) and assign it to the variable a, and execute the kill process call variable a

Pause

Tags: Variables processes commands fields results loops slogans scripts Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB NVidia Docker vpn Shulou Information