Set Autorun Python Script regedit key code example
Example: how to run python file in when windows startup
C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Content of run_script.cmd
python path\to\your\script.py
C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Content of run_script.cmd
python path\to\your\script.py