Meinst das vielleicht so:
Spoiler anzeigen
[autoit]
#include <Array.au3>
#include <File.au3>
Dim $ips
_FileReadToArray("ip.csv", $ips)
$pcnummer = InputBox("Ping", "PC-Nummer eingeben:")
$index = _ArraySearch($ips, $pcnummer & ";", 1, 0, 0, 1)
If @error Then
MsgBox(0, "Ping", "PC ist nicht in der IP-Liste")
Else
$ip = StringSplit($ips[$index], ";", 2)
$ping = Ping($ips[$index])
If @error = 0 Then
MsgBox(0, "Ping", "Der PC hat in " & $ping & " Millisekunden geantwortet.")
Else
MsgBox(0, "Ping", "PC antwortet nicht.")
EndIf
EndIf