close port usage code example
Example 1: stop kill network connection using cmd line
%%P instead of %P
Example 2: stop kill network connection using cmd line
FOR /F ... %variable IN ('command') DO otherCommand %variable...
%%P instead of %P
FOR /F ... %variable IN ('command') DO otherCommand %variable...