39 lines
1.1 KiB
PowerShell
39 lines
1.1 KiB
PowerShell
|
|
$ErrorActionPreference = "Continue"
|
||
|
|
|
||
|
|
$Root = "C:\Users\surov\Documents\AZA_GIT\aza\AzA march 2026"
|
||
|
|
$Main = Join-Path $Root "basis14.py"
|
||
|
|
|
||
|
|
Write-Host ""
|
||
|
|
Write-Host "=== AZA AKTUELL STARTEN ===" -ForegroundColor Cyan
|
||
|
|
Write-Host "Arbeitsordner: $Root"
|
||
|
|
Write-Host "Startdatei: $Main"
|
||
|
|
|
||
|
|
if (!(Test-Path $Main)) {
|
||
|
|
Write-Host "FEHLER: basis14.py nicht gefunden." -ForegroundColor Red
|
||
|
|
Read-Host "Enter zum Schließen"
|
||
|
|
exit 1
|
||
|
|
}
|
||
|
|
|
||
|
|
Write-Host ""
|
||
|
|
Write-Host "basis14.py geändert:" (Get-Item $Main).LastWriteTime
|
||
|
|
Write-Host "basis14.py Größe: " (Get-Item $Main).Length "Bytes"
|
||
|
|
Write-Host ""
|
||
|
|
|
||
|
|
Write-Host "Beende alte python.exe Prozesse..." -ForegroundColor Yellow
|
||
|
|
Get-Process python -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue
|
||
|
|
Start-Sleep -Seconds 1
|
||
|
|
|
||
|
|
Set-Location $Root
|
||
|
|
|
||
|
|
Write-Host ""
|
||
|
|
Write-Host "Python-Version:" -ForegroundColor Cyan
|
||
|
|
python --version
|
||
|
|
|
||
|
|
Write-Host ""
|
||
|
|
Write-Host "Starte AZA aus aktueller basis14.py..." -ForegroundColor Green
|
||
|
|
python $Main
|
||
|
|
|
||
|
|
Write-Host ""
|
||
|
|
Write-Host "AZA wurde beendet."
|
||
|
|
Read-Host "Enter zum Schließen"
|