For example, when windows make updates and then restart the pc, I log in with my password to the pc some apps are loading. what I want to do is that it will open automatic specific projects not just to run the unity editor or the unity hub but to open specific projects.
Maybe by writing some script for the windows or some script for the unity. but them ain goal is to open specific projects automatic when the pc load and the windows start.
Create a shortcut to the desired unity editor and put the projectPath command line argument in it. Also check out the other very handy command line arguments. You can even build your project from a desktop shortcut https://docs.unity3d.com/Manual/CommandLineArguments.html
C:\Program Files\Unity\Hub\Editor\2019.4.15f1\Editor>“C:\Program Files\Unity\Hub\Editor\2019.4.15f1\Editor\Unity.exe” -projectPath “D:\Unity Projects\Test” and then the second part “place the shortcut in the startup sequence” Thanks.