Files
netdesk/scripts/start_host_hidden.vbs
T

7 lines
382 B
Plaintext

' Runs the NetDesk host agent with no console window.
Set sh = CreateObject("WScript.Shell")
repo = Left(WScript.ScriptFullName, InStrRev(WScript.ScriptFullName, "\scripts\") - 1)
py = repo & "\.venv\Scripts\pythonw.exe"
If Not CreateObject("Scripting.FileSystemObject").FileExists(py) Then py = "pythonw.exe"
sh.Run """" & py & """ """ & repo & "\host\netdesk_host.py""", 0, False