Using ping -n 1 127.1>nul is used for delaying!! Generally, for batch processing that involves loops, a high execution frequency is not needed. Often, 5 - 10 seconds is sufficient. But if you don't add a delay, continuously executing some commands will consume a lot of CPU resources. Seek a balance!
