SYNCTHING – BATCH FILE TO START SERVICE

Simple batch file to start Syncthing without a Dos window running (users could be tempted to close it). Edit the path to match.

============================================================
rem stelss bat
@echo off
rem create work bat
echo dir /s c:\^>log.txt>wait.cmd
rem Script file cooking
echo Set WshShell = CreateObject(“WScript.Shell”) >start.vbs
echo WshShell.Run “C:\syncthing\syncthing.exe”, 0, false>>start.vbs
rem run cooked script, dont wait exit
cscript.exe //b //nologo start.vbs
rem del temped files
del /f /q start.vbs
del /f /q wait.cmd
============================================================