I have to run a command automatically at startup. For this, I use a CMD file. The problem is the program needs internet connection. If it doesn't, then it will timeout and exit. When Windows logs on, the network connection is not available yet (DHCP). Can I do something like: loop a command to check internet connection (an address like www.google.com), and when it's available, do the rest of the commands?