12 lines
557 B
Plaintext
12 lines
557 B
Plaintext
' Launch the Comfy host agent with no console window.
|
|
' Window style 0 = hidden. Wait = True so Task Scheduler keeps the task marked Running.
|
|
Option Explicit
|
|
Dim sh, root, node, agent
|
|
Set sh = CreateObject("WScript.Shell")
|
|
root = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName)
|
|
root = CreateObject("Scripting.FileSystemObject").GetParentFolderName(root)
|
|
node = """C:\Program Files\nodejs\node.exe"""
|
|
agent = """" & root & "\scripts\comfy-host-agent.mjs"""
|
|
sh.CurrentDirectory = root
|
|
sh.Run node & " " & agent, 0, True
|