Bat Dateien verbessert

This commit is contained in:
2026-05-31 10:26:30 +02:00
parent f14f31712a
commit 0e2df02c53
3 changed files with 20 additions and 10 deletions
-5
View File
@@ -1,5 +0,0 @@
@echo off
cd /d "C:\Users\HP\source\repos\skyview.astronomiemuseum.de"
echo Starte PHP-Entwicklungsserver auf http://127.0.0.1:8000/
echo Beenden mit Ctrl+C
"E:\php\php.exe" -S 127.0.0.1:8000 -t .
-5
View File
@@ -1,5 +0,0 @@
@echo off
cd /d "C:\Users\ich\source\repos\skyview.astronomiemuseum.de"
echo Starte PHP-Entwicklungsserver auf http://127.0.0.1:8000/
echo Beenden mit Ctrl+C
"C:\laragon\bin\php\php-8.4.5-nts-Win32-vs17-x64\php.exe" -S 127.0.0.1:8000 -t .
+20
View File
@@ -0,0 +1,20 @@
@echo off
setlocal
set "REPO_DIR=%~dp0.."
set "SERVER_URL=http://127.0.0.1:8000/"
cd /d "%REPO_DIR%"
where php >nul 2>nul
if errorlevel 1 (
echo PHP wurde nicht im PATH gefunden.
echo Bitte PHP zum PATH hinzufuegen und erneut versuchen.
exit /b 1
)
echo Starte PHP-Entwicklungsserver auf %SERVER_URL%
echo Beenden mit Ctrl+C
start "" "%SERVER_URL%"
php -S 127.0.0.1:8000 -t .