Trying to call three python scripts to be run concurrently, in background, with separate stdout file and stderr file for each script. Here is the code used
@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 > logsa.log 2> logsa_stderr.log"
REM Launch b.py with separate stdout and stderr logs
start /B cmd /c "python .b.py > logsb.log 2> logsb_stderr.log"
REM Launch a.py with separate stdout and stderr logs
start /B cmd /c "python .c.py > logsc.log 2> logsc_stderr.log"
Running this scripts has only the first script actively running, the rest doesn’t run or do anything. There is no conflict or connection between the scripts or any common resource being used in all three. When I run them individually in cmd prompt they work just fine.
I want the three scripts to be run in background, concurrently and without any output window.
All this is in windows 11