Skip to main content

windowsQuit

Contents:

windowsQuit(applicationName)

Quits a Windows application if running.

import { windowsActivate, windowsQuit } from "@guidepup/guidepup";

(async () => {
// Open Microsoft Edge.
await windowsActivate("msedge.exe", "Edge");

// ... perform some commands.

// Quits Microsoft Edge.
await windowsQuit("msedge.exe");
})();

Parameters:

  • applicationPath string Application executable path identifier.

Returns: Promise<void>