I am running Windows Vista on my computer and sometimes the connection to my router drops for no reason. But when the router reconnects to the internet then the computer which is linked via lan cable to the router remains offline. I found out that the only way to get it back online was to reset the network adapter by going into Control Panel >> Network and Sharing Center >> Manage Network Connections >> and then clicking on "Diagnose and Repair" on the LAN icon >> and then clicking "Reset Network Adapter". What I do is that I leave the computer alone for sometime for downloads and for this I want a program or a script that will automatically do this things when the connection drops. Thanks for any assitance.