Mike
0
Q:

stop kill network connection using cmd line

FOR /F "tokens=4 delims= " %%P IN ('netstat -a -n -o ^| findstr :8080') DO TaskKill.exe /PID %%P
0
findstr :8080
0
TaskKill.exe /PID <value>
0
%%P instead of %P
0
FOR /F ... %variable IN ('command') DO otherCommand %variable...
0
FOR /F "tokens=4 delims= " %%P IN ('netstat -a -n -o ^| findstr :8080') DO @ECHO TaskKill.exe /PID %%P
0
"tokens=4 delims= "
0

New to Communities?

Join the community