MapViewer/START_Win.ps1

15 lines
389 B
PowerShell
Raw Normal View History

$Port = 8000
$Base = "http://localhost:$Port"
# Server starten
$server = Start-Process -PassThru -NoNewWindow python "server.py"
Start-Sleep -Milliseconds 500
# Öffnet im Standardbrowser
Start-Process "$Base/index.html"
Start-Process "$Base/spieler.html"
Write-Host "Server läuft (PID $($server.Id)). Zum Beenden: Fenster schließen oder Prozess killen."
Wait-Process -Id $server.Id