Skip to content

Running .bat as prep stopped working #1293

@mkaflowski

Description

@mkaflowski

I have that bat:

@echo off

chcp 65001 >nul
echo %PATH% > C:\Users\mkafl\Desktop\sunshine_path.txt
echo %PATH%

echo [1/5] Przełączanie na wewnętrzny wyświetlacz...
DisplaySwitch.exe /internal

echo [2/5] Oczekiwanie 2 sekundy...
timeout /t 2 /nobreak >nul

echo [3/5] Ustawianie głównego urządzenia audio...
powershell -ExecutionPolicy Bypass -NoProfile -File "C:\Users\mkafl\Desktop\primary_audio.ps1"

echo [4/5] Oczekiwanie 5 sekund...
timeout /t 5 /nobreak >nul

echo [5/5] Hibernacja komputera...
shutdown /h

I add it to start/end command and get error.
What it helps is adding:
set PATH=%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\WindowsPowerShell\v1.0;%PATH%
after first line.

Did some Windows update brake with Apollo?
I tried uninstalling and installing Apollo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions