The CLI internal command can be used to:
Command Arguments:
Argument |
Type |
Possible values |
Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
no argument |
- |
- |
Opens an instance of the Command Line Interpreter window. | ||||||||||||||||
DOSPROMPT |
/O |
(no value) |
Opens a DOS prompt with the current directory set to the folder
displayed in the source file display. You can override the current
directory by using the cd directive before the
CLI command (requires using the advanced command
editor). | ||||||||||||||||
|
|
selfolder |
Uses the first selected sub-folder in the source display as the CD for
the DOS prompt. | ||||||||||||||||
|
|
admin |
On Vista and above, opens the DOS prompt elevated (after a UAC
prompt). | ||||||||||||||||
|
|
noadmin |
Prevents the DOS prompt from being
elevated. | ||||||||||||||||
|
|
powershell |
Opens a PowerShell prompt rather than a DOS
prompt. The separate EXEC and TITLE arguments can be used to choose which version of PowerShell to run and set the window title. | ||||||||||||||||
|
|
powershellise |
Opens a PowerShell ISE rather than a DOS
prompt. When launching a PowerShell ISE, any color parameters are ignored. This limitation affects the ISE only; DOS prompts and normal PowerShell windows can both have colors specified. | ||||||||||||||||
|
|
color=<color> |
Sets the text and background colors of the DOS window. You can use this by itself, or in conjunction with the admin argument to override the default color when the prompt is elevated. The <color> value is specified with two hexadecimal digits - the first corresponds to the background color, and the second to the foreground. The possible colors depend on your system's settings but are as below by default:
Note that you must enclose the entire value of the DOSPROMPT argument in quotes when using the color parameter (otherwise the embedded = sign will confuse the command parser).
| ||||||||||||||||
|
|
nocolor |
Prevents the color of the DOS prompt from being set when
elevated. | ||||||||||||||||
|
|
wsl |
Opens a WSL (Windows Subsystem for Linux) shell window. Note that WSL
must be installed from the Windows Store. Example: CLI DOSPROMPT=wsl | ||||||||||||||||
EXEC |
/K |
<command> |
Overrides the default executable to launch when opening a PowerShell
prompt. For example, you may wish to create a button which runs PowerShell
7 instead of Windows PowerShell. | ||||||||||||||||
QUICKCMD |
/O/R |
(no value) |
Displays the find-as-you-type field in Command mode,
which lets you enter an ad-hoc Opus command to execute in the current file
display. This lets you bind a hotkey to bring the FAYT field up in the specific
mode. | ||||||||||||||||
|
|
<command> |
Displays the find-as-you-type field in Command mode,
and initialises it with the specified command. | ||||||||||||||||
QUICKDOSCMD |
/O/R |
(no value) |
Displays the find-as-you-type field in DOS Command
mode, which lets you enter a command to execute in a DOS
prompt. | ||||||||||||||||
|
|
<command> |
Displays the find-as-you-type field in DOS Command
mode, and initialises it with the specified command. | ||||||||||||||||
QUICKFILTER |
/O/R |
(no value) |
Displays the find-as-you-type field in Filter mode,
which lets you filter the current file
list. | ||||||||||||||||
|
|
<pattern> |
Displays the find-as-you-type field in Filter mode,
and initialises it with the specified pattern. | ||||||||||||||||
QUICKFIND |
/O/R |
(no value) |
Displays the find-as-you-type field in Find mode,
which lets you scroll to the first file matching the entered
string. | ||||||||||||||||
|
|
<search string> |
Displays the find-as-you-type field in Find mode and
initialises it with the specified string. | ||||||||||||||||
QUICKFTPCMD |
/O/R |
(no value) |
Displays the find-as-you-type field in a special
mode that lets you enter a command to send directly to a remote FTP
server. This command only works when you are currently connected to an FTP
site. You can view the results of your command in the FTP log. | ||||||||||||||||
|
|
<command> |
Displays the find-as-you-type field in FTP command
mode, and initialises it with the specified command. | ||||||||||||||||
QUICKGO |
/O/R |
(no value) |
Displays the find-as-you-type field in a special
mode ("go" mode) that lets you navigate to another folder in the
current file display. | ||||||||||||||||
|
|
<path> |
Displays the find-as-you-type field in "go" mode,
and initialises it with the specified path. | ||||||||||||||||
QUICKRANGE |
/O/R |
(no value) |
Displays the find-as-you-type field in Range mode,
which lets you select files by index (or by a range of indices). This only
works when the Index column has been added to the file
display. | ||||||||||||||||
|
|
<range> |
Displays the find-as-you-type field in Range mode,
and initialises it with the specified range string. | ||||||||||||||||
QUICKSEARCH |
/O/R |
(no value) |
Displays the find-as-you-type field in Search mode,
which lets you initiate a Windows Search of the current
folder. | ||||||||||||||||
|
|
<query term> |
Displays the find-as-you-type field in Search mode,
and initialises it with the specified query term. | ||||||||||||||||
QUICKSELECT |
/O/R |
(no value) |
Displays the find-as-you-type field in Select mode,
which lets you select files in the current folder by wildcard
pattern. | ||||||||||||||||
|
|
<pattern> |
Displays the find-as-you-type field in Select mode
and initialises it with the specified pattern. | ||||||||||||||||
QUICKTABS |
/O/R |
(no value) |
Displays the find-as-you-type field in Tabs mode,
which lets you search and switch folder
tabs. | ||||||||||||||||
|
|
<pattern> |
Displays the find-as-you-type field in Tabs mode and
initialises it with the specified text. | ||||||||||||||||
QUICKWSLCMD |
/O/R |
(no value) |
Displays the find-as-you-type field in WSL script
mode, which lets you enter a command to execute in a WSL (Windows System
For Linux) window. Note that WSL needs to be installed from the Windows
Store. | ||||||||||||||||
|
|
<command> |
Displays the find-as-you-type field in WSL
script mode, and initialises it with the specified
command. | ||||||||||||||||
SCRIPTMODE |
/O |
(no value) |
Displays the CLI in Script Mode, which provides a simple way to test scripts before adding them to
buttons. | ||||||||||||||||
|
|
<language> |
Displays the CLI in Script Mode with the language type set to the
specified language. If you don't specify a language the CLI will remember
the previous language used. |
||||||||||||||||
TITLE |
/K |
<command> |
Defines the window title when opening a PowerShell
prompt. |