15 lines
621 B
Plaintext
15 lines
621 B
Plaintext
' Start THIS clone's Comfy host agent (YuE2). Replaces any stale agent on 8199.
|
|
' Safe to run at logon / from Startup / Desktop shortcut when Cursor is closed.
|
|
Option Explicit
|
|
Dim sh, fso, root, ps1
|
|
Set sh = CreateObject("WScript.Shell")
|
|
Set fso = CreateObject("Scripting.FileSystemObject")
|
|
|
|
root = fso.GetParentFolderName(WScript.ScriptFullName)
|
|
root = fso.GetParentFolderName(root)
|
|
ps1 = root & "\scripts\start-comfy-host-agent.ps1"
|
|
If Not fso.FileExists(ps1) Then WScript.Quit 1
|
|
|
|
sh.CurrentDirectory = root
|
|
sh.Run "powershell.exe -NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -File """ & ps1 & """", 0, False
|