I’m using 2 instances scenario. And I faced with even if I run 1st instance with “syncthing --no-browser --no-console” and it usually closes the window (even I saw it may not close sometimes), second instance command “syncthing --no-browser --no-console --home=%LOCALAPPDATA%\” does not close the console window
The problem is that most users probably don’t want to disable Windows Terminal and go back to the old console as their default shell. I think we should probably recommend the Task Scheduler way as the main method to run Syncthing hidden, because that one can always hide the console window even without using --no-console with Syncthing.
In other words, the Startup folder solution isn’t really viable anymore, at least not as a general recommendation.
For me run: minimized had (still has, as long as I’m not a usual Windows user) the merit of completely hiding the console. --no-console does its own job OK (--no-console all alone, the console won’t even show as a stable terminal application button in the task bar) and run: minimized just prevents the stealth window/button on startup… all fine… for me with single instance… in friends computers.
Windows Terminal does not completely replace the default PowerShell (even within Windows Terminal, Start-Process may invoke the legacy PowerShell). Using Start-Process in PowerShell correctly hides the command line window. Therefore, when creating a shortcut, you can first call PowerShell and then use PowerShell to create the Syncthing process.
The shortcut should point to:
(Replace C:\Program Files\Syncthing\syncthing.exe with the actual path to your Syncthing executable. )
This approach ensures no window appears when starting the shortcut, whether manually or via the startup folder.