Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Definition
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
The ShellHelpers class provides methods for opening commands in a shell environment. It allows you to execute commands with different user contexts, such as running as an administrator or as a different user.
Methods
| Method | Description |
|---|---|
| OpenCommandInShell(String, String, String, String, ShellRunAsType, Boolean) | Opens a command in a shell environment with the specified parameters. |
| OpenInShell(String, String, String, ShellRunAsType, Boolean) | Opens a shell with the specified command and parameters. |
Enums
| Enum | Description |
|---|---|
| ShellRunAsType | The ShellRunAsType enumeration defines the different types of user contexts in which a command can be executed in the Command Palette. This enumeration is used to specify how a command should be run. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Windows developer