This is part of the Fake.Core.Process module.

Shell

Allows to exec shell operations synchronously and asynchronously.

Static members

Static memberDescription
Shell.AsyncExec(cmd, args, dir)
Signature: (cmd:string * args:string option * dir:string option) -> Async<int>

Runs the given process asynchronously.

Parameters

  • cmd - The command which should be run in elavated context.
  • args - The process arguments (optional).
  • directory - The working directory (optional).
Shell.Exec(cmd, args, dir)
Signature: (cmd:string * args:string option * dir:string option) -> int

Runs the given process, waits for it's completion and returns the exit code.

Parameters

  • cmd - The command which should be run in elavated context.
  • args - The process arguments (optional).
  • directory - The working directory (optional).