Habe noch eine Frage und zwar hast Du im folgenden Abschnitt die Variable $hFile verwendet wozu dient diese. Hätte man nicht einfach die $Log nehmen können? Sorry wenn ich blöd frag.
Spoiler anzeigen
[autoit]
Func _reboot($srv)
Local $hFile
If $manuell = 1 Then
Run($reboot & $srv, "", @SW_HIDE)
$hFile = FileOpen($Log, 9)
FileWrite($hFile, $txt2 & $srv & $txt3 & $txt5 & @CRLF)
FileClose($hFile)
Else
Run($reboot & $srv, "", @SW_HIDE)
$hFile = FileOpen($Log, 9)
FileWrite($hFile, $txt1 & $srv & $txt3 & $txt5 & @CRLF)
FileClose($hFile)
EndIf
EndFunc ;==>_reboot
LG
Schnuecks