Also müsste so die Batch funktionieren

Mo-Fr 8-14 Uhr
und Nur gesendet, wenn 10 Minuten vorher nicht gesendet wurde
und nicht, wenn kein Alarmierungstext kommt.




start BE.exe
IF errorlevel==1 exit
start BE.exe
IF errorlevel==7 exit


FOR /F "usebackq tokens=1,2,3 delims=: " %%a IN ('%time%') DO set stunde=%%a

if %stunde%==14 exit
if %stunde%==15 exit
if %stunde%==16 exit
if %stunde%==17 exit
if %stunde%==18 exit
if %stunde%==19 exit
if %stunde%==20 exit
if %stunde%==21 exit
if %stunde%==22 exit
if %stunde%==23 exit
if %stunde%==0 exit
if %stunde%==1 exit
if %stunde%==2 exit
if %stunde%==3 exit
if %stunde%==4 exit
if %stunde%==5 exit
if %stunde%==6 exit
if %stunde%==7 exit
if "%1"=="" goto ende
cd C:\
if exist status.txt goto ende
echo.>status.txt

start J:\Programme\ZusatzprogrammeFMS32\AlarmSMS\ibss.ex e /U: *** /P: *** /E: *** /A: 1 /T: 2 /N: ALARM LZ ALTSTADT: %1

wait 600
del status.txt
:ende