Syncthing as a Service on Windows

Wouldn’t that taskkill command corrupt the index as it’s forcing it to close?

You can see my solution here. Then it’s just a case of opening services.msc or an elevated command prompt and running the command net stop Syncthing in order to stop Syncthing from running, should you want to.