Options
All
  • Public
  • Public/Protected
  • All
Menu

Generic command builder class for the Windows shutdown command.

see

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/shutdown

Hierarchy

  • default

Index

Constructors

constructor

Properties

Readonly BASE_COMMAND

BASE_COMMAND: "shutdown" = 'shutdown'

Private Readonly flags

flags: FlagObject[] = []

Methods

getArgs

  • getArgs(): string[]

getCommandAsString

  • getCommandAsString(): string

setFlag

  • setFlag(flag: WindowsShutdownFlag, asFirst?: boolean, value?: string | number | boolean): void
  • Sets a flag on the shutdown command, optionally with a value.

    Note: Setting the same flag twice will overwrite any previous value this flag may have had.

    Parameters

    Returns void

setFlags

unsetFlag

unsetFlags

Generated using TypeDoc