Unless this is purely an educational activity trying to learn more about DOS scripting, I would use one of the many freeware Windows ping utilities for this task. Here are a couple that are worth a look and allow you to see status of a set of nodes.
This topic area includes legacy versions of Windows prior to Windows 2000: Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions including Windows Mobile.
»bp