Syncthing Autostarts WITH Console and Quits if I Close it

I’m running Syncthing 1.20.1 on Windows 11 Pro (x64). I’ve followed the instructions for getting Syncthing to autostart via the Startup folder:

In a nutshell, those say add a shortcut to:

%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup

with the following in the Target line:

C:\syncthing\syncthing.exe --no-console --no-browser

Those instructions state:

Syncthing will now automatically start the next time you log on to your user account in Windows. No console or browser window will pop-up…

But, 1) upon starting the computer, up pops a terminal window showing the status of Syncthing starting up and syncing (it stays open), and 2) when I close that terminal window, Syncthing shuts down on the computer and my phone disconnects from it. Trying to browse to:

results in an error message:

This site can’t be reached refused to connect.



Going to c:\syncthing and double-clicking on the executable starts it up again (with a console window popping up), but, once again, when I close that window, Syncthing quits.

Did I miss something in the instructions? Could this be because of the change from the old command line console to the new Terminal in Windows 11?

Sure could be. I haven’t seen Windows 11, but the trick we use only works with the old style “cmd” terminal, not if the terminal is Powershell for example.

1 Like

In Windows 11, you either need to set your console to “legacy” mode, or use the Task Scheduler method instead if you want to hide the console window.

Alternatively, it’s also possible to use PowerShell to start a process in a hidden window, but this method isn’t included in the Docs currently. If you search the Internet for -WindowStyle Hidden, you should be able to find instructions on how to use it.

1 Like

I’ll give the Task Schedule method a whirl:

Thanks to both of you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.