Home > Software engineering >  For help, PING batch script
For help, PING batch script

Time:11-12

Now want to ping a batch of IP. TXT in IP ping test, there should be sound the alarm when the network impassability, but cannot be achieved, help you a great god,

@ echo off
Set the date: the date=% % % ~ 0, 4 - date: ~ 5, 2 - % % date: ~ % % time: 8, 2 ~ 0, 8 %
Echo date % % network impassability & gt;> ErrorLog. TXT
FOR/F "delims=" % % I in (IP. TXT) do (
Ping I - n % % 1 | findstr searches "TTL" & gt; Nul& & Echo % % I network normal | | (echo % % I network not through
Echo
Mshta vbscript: createobject (" sapi. Spvoice ") speak (" command execution failed!" ) (window. Close)
Echo % % i> ErrorLog. TXT))
pause

CodePudding user response:

What is the problem? SAPI don't work? Impression is that a 0 years interface under XP at that time also need to specifically researched SDK installation
  • Related