run a python script in background code example
Example 1: how to run a python script in background windows
> pythonw script.py
Example 2: how to make a python file run in the background
#Cmd
C:\..\>cd DIRECTORY
C:\..\DIRECTORY>pythonw python.py
#Close in Task Manager