Scripts: netstat sprachunabhaengig (0.0.0.0:0 statt LISTENING)

Made-with: Cursor
This commit is contained in:
2026-02-28 14:58:47 +01:00
parent 0a02f4f849
commit 378fb59912
2 changed files with 4 additions and 3 deletions

View File

@@ -19,8 +19,8 @@ if %errorlevel% neq 0 (
exit /b 1
)
REM Pruefen ob Server bereits laeuft
netstat -an | findstr ":%PORT%.*LISTENING" > nul 2>&1
REM Pruefen ob Server bereits laeuft (0.0.0.0:0 = Listening, sprachunabhaengig)
netstat -an | findstr ":%PORT% " | findstr "0.0.0.0:0" > nul 2>&1
if %errorlevel% equ 0 (
echo WebDAV-Server laeuft bereits.
exit /b 0