close tcp\udp connection by process name without killing the process Autoit script

view story

http://superuser.com – I need help with this script It's close a tcp\udp connection of a process without killing the process I found script in forum but it's not working let's say I want to close any connection established from "internet download manager" so I put in process name $processname = "IDMan.exe" but it still not working !! I guess some thing wrong in the code Second : I want to but a WHILE loop to kill the process connection whenever it started how can I do that Here is the script without modifications Download Script (HowTos)