@echo off
tasklist -fi "IMAGENAME eq nsd.exe" | findstr "nsd.exe"
rem Task ist nicht da ....
if %errorlevel% == 0 goto TaskDa
if %errorlevel% == 1 goto TaskNichtDa
:TaskNichtDa
echo Task nicht gefunden ...
D:
cd Lotus\Domino\Data
start /wait c:\Lotus\Domino\nsd.exe
start /wait c:\Lotus\Domino\nsd.exe
start /wait c:\Lotus\Domino\nsd.exe
goto ende
rem Task läuft bereits ....
:TaskDa
echo Task gefunden - verlasse skript ...
:ende