Hi Luziekix,

Here's what we do to check the machine status before applying any KiXtart scripts.

- Do a PING test of the machine and log the result to a text file.
- If the machine returns "Request timed out" message, consider the machine as OFF and move onto the next one.

A sample code would be :

code:
Break On
Shell "cmd.exe /c ping m/c_name -n 1 > result.txt"
If Open(3,"result.txt",2) = 0
$Readline_val = ReadLine(3)
While @error = 0
If $Readline_val = "Request timed out."
? "Machine not On. Skip to next m/c"
Del ("Result.txt")
EndIf
$Readline_val = ReadLine(3)
Loop
$ = Close(3)
Del ("Result.txt")
EndIf

Regards

Onlinegames