
It opens in Roaming by default, but be sure to look in Local, too.)Īs mentioned at the start of this answer, it is important that you select pythonw.exe rather than python.exe as pythonw.exe will run without opening a command prompt.

(You can paste %appdata% into the run dialog to open this folder and look for Python. More recently, Python is found somewhere within %appdata%. Your Python install is likely in a different location.

Right-click in this folder and say "New shortcut." Browse to "This PC," "Windows (C:)," "Program Files,", "Python39", and select pythonw.exe. (For me, the startup folder is at C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.) Create new shortcut Shorcuts in this folder are launched when the computer starts. In the Run dialog, type shell:startup and it enter. Type the Windows and R keys at the same time. Detailed instructions Open the startup folder The w version of Python is needed so that it starts up without a shell in the background.

Create a shortcut in the shell:startup folder with an absolute path to your pythonw.exe executable.
