Hallo zusammen
Könnte mir mal jemand einen Tipp geben,
warum die Batch sich nicht Beendet?
Spoiler anzeigen
[autoit]
$ZeitStart = InputBox("Uhrzeit", "Starten (HH:MM)", @HOUR & ":" & @MIN & ':' & @SEC)
$ZeitStop = InputBox("Uhrzeit", "Beenden(HH:MM)", @HOUR & ":" & @MIN & ':' & @SEC)
;$process = "CMD.exe"
While 1
Sleep(100)
If $ZeitStart = @HOUR & ":" & @MIN & ':' & @SEC Then
ShellExecute(@ScriptDir & "\test.bat")
;MsgBox (64,"","Batch Gestartet!")
;ExitLoop
If $ZeitStop = @HOUR & ":" & @MIN & ':' & @SEC Then
;ProcessClose (@ScriptDir & "\test.bat")
ProcessClose("CMD.exe")
ExitLoop
EndIf
EndIf
WEnd