openclaw/src/daemon/schtasks-exec.ts

8 lines
237 B
TypeScript
Raw Normal View History

2026-02-15 03:44:05 +00:00
import { execFileUtf8 } from "./exec-file.js";
export async function execSchtasks(
args: string[],
): Promise<{ stdout: string; stderr: string; code: number }> {
2026-02-15 03:44:05 +00:00
return await execFileUtf8("schtasks", args, { windowsHide: true });
}