File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,27 @@ start Syncthing automatically either at user log on, or at system
34
34
startup. In both cases, Syncthing will open and stay invisible in
35
35
background.
36
36
37
+ It's possible to run Windows Task Scheduler CLI API with a command such as
38
+ ``schtasks /create /sc ONLOGON /tn Syncthing /tr "<program-path> [--no-console --no-browser]" ``.
39
+ The operation requires elevated privileges. Preventing the pop-up console that hides after
40
+ some delay is possible wrapping the executable with a ``.vbs or .ps1 ``.
41
+
42
+ vbs::
43
+
44
+ Dim objShell
45
+ Set objShell = CreateObject("WScript.Shell")
46
+ objShell.Run "path to syncthing.exe", 0, False
47
+ Set objShell = Nothing
48
+
49
+ ps1::
50
+
51
+ Start-Process "path to syncthing.exe" -WindowStyle Hidden
52
+
37
53
For technical information about Task Scheduler visit
38
- https://docs.microsoft.com/windows/win32/taskschd.
54
+ https://docs.microsoft.com/windows/win32/taskschd
55
+ https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks
56
+
57
+ Or follow the Graphical tutorial below:
39
58
40
59
#. Start the Task Scheduler either by going to ``Start Menu > Windows
41
60
Administrative Tools `` and clicking on ``Task Scheduler ``, or by
You can’t perform that action at this time.
0 commit comments