Hier meine Original Datei:
if exist "d:\baycom\poc32\status.txt" goto ende
echo "Alarm läuft" > status.txt
@Echo off
cls
Echo Alarmierung
if "%2"=="0" set text=Gesamt
if "%2"=="1" set text=Kleinalarm
if "%2"=="2" set text=DLK-Maschinisten
if "%2"=="3" set text=Probealarm
echo %3> d:\temp.txt
ansiasci d:\temp.txt d:\Alarm.txt /an /o
d:\baycom\poc32\clemail.exe -to xxxxxx@gmx.de -from zzzzzzzz@gmx.de -fromname FW-%text% -smtpserver mail.gmx.de -popserver pop.gmx.de -popuser ????? -poppass Passwort -subjectfile d:\Alarm.txt -bodyfile d:\alarm.txt
d:\baycom\poc32\clemail.exe -to xxxxxx@gmx.de -from yyyyyyyyy@gmx.org -fromname FW-%text% -smtpserver mail.gmx.de -popserver pop.gmx.de -popuser yyyyyyyyy@gmx.org -poppass Passwort -subjectfile d:\Alarm.txt -bodyfile d:\alarm.txt
wait 1
del status.txt
Kann mir keiner helfen?
Bitte!
Danny