@if not %1. == . call rexxtry call SockClose %1 ; say result ; exit result @if not %1. == . exit @netstat -s | find " " | find /V " 0 0.0.0.0 UDP" | find /V " 0.0.0.0 CLOSED" | ( find /V "AF_OS2" | find /V "sockets 0" | find /V "--------------------" )