I need help with a script to do the following:
1. Read a text file that contains IP addresses (one IP address per line)
2. Read each line of the text file and then call an Operating System command and pass the IP address to the command
3. Check the return code and log the IP address passed if the command failed by appending it into a failed.txt file
The script needs to be DOS batch file format or VBscript and run natively on a Windows 2003/XP server using a Command Prompt. Any pointers or the shell of such a script would be appreciated.


LinkBack URL
About LinkBacks
Reply With Quote