Код: Выделить всё
@echo off
REM Ensure the logs directory exists (create it if not)
if not exist logs mkdir logs
REM Launch a.py with separate stdout and stderr logs
start /B cmd /c "python .\a.py > logs\a.log 2> logs\a_stderr.log"
REM Launch b.py with separate stdout and stderr logs
start /B cmd /c "python .\b.py > logs\b.log 2> logs\b_stderr.log"
REM Launch a.py with separate stdout and stderr logs
start /B cmd /c "python .\c.py > logs\c.log 2> logs\c_stderr.log"
Я хочу, чтобы три сценария запускались в фоновом режиме, одновременно и без какого-либо окна вывода.
Все это есть в Windows 11
Подробнее здесь: https://stackoverflow.com/questions/786 ... batch-file