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 OpenCommandInShell method opens a command in the shell with the specified parameters.
Parameters
path String
The path to the shell executable. This can be a full path or a relative path.
pattern String
The pattern to match the command. This can be a wildcard pattern or a regular expression.
arguments String
The arguments to pass to the shell. This can include options, flags, and other parameters.
workingDir String
The working directory for the shell. This is the directory where the command will be executed.
runAs ShellRunAsType
The user context in which to run the shell.
runWithHiddenWindow Boolean
The flag indicating whether to run the command in a hidden window.
Returns
A Boolean value indicating whether the command was successfully opened in the shell.
Windows developer