CLI

The CLI internal command can be used to:

Command Arguments:

Argument
Type
Possible values
Description

no argument

-

-

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).

Example: CLI DOSPROMPT

selfolder

Uses the first selected sub-folder in the source display as the CD for the DOS prompt.

Example: CLI DOSPROMPT=selfolder

admin

On Vista and above, opens the DOS prompt elevated (after a UAC prompt).

Example: CLI DOSPROMPT=admin

noadmin

Prevents the DOS prompt from being elevated.

Example: CLI DOSPROMPT=noadmin

powershell

Opens a PowerShell prompt rather than a DOS prompt.

Example: CLI DOSPROMPT=powershell,admin

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.

Example: CLI DOSPROMPT=powershellise

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:

Supported color values <WRAP>

</WRAP><wrap clear/>

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).

Example: CLI DOSPROMPT="admin,color=97"

0 = Black

1 = Blue

2 = Green

3 = Aqua

4 = Red

5 = Purple

6 = Yellow

7 = White

8 = Gray

9 = Light Blue

A = Light Green

B = Light Aqua

C = Light Red

D = Light Purple

E = Light Yellow

F = Bright White

nocolor

Prevents the color of the DOS prompt from being set when elevated.

Example: CLI DOSPROMPT=admin,nocolor

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.

Example: CLI DOSPROMPT=powershell EXEC="C:\Program Files\PowerShell\7\pwsh.exe"

QUICKCMD

/O/R

(no value)

Example: CLI QUICKCMD

<command>

Prefix with noselect: to place the cursor at the end of the command instead of initially selecting it for typing over.

Example: CLI QUICKCMD Help Example: CLI QUICKCMD noselect:Help

QUICKDOSCMD

/O/R

(no value)

Example: CLI QUICKDOSCMD

<command>

Prefix with noselect: to place the cursor at the end of the command instead of initially selecting it for typing over.

Example: CLI QUICKDOSCMD dir Example: CLI QUICKDOSCMD noselect:dir

QUICKFILTER

/O/R

(no value)

Example: CLI QUICKFILTER

<pattern>

Prefix with noselect: to place the cursor at the end of the pattern instead of initially selecting it for typing over.

Example: CLI QUICKFILTER *.(jpg|png) Example: CLI QUICKFILTER noselect:*.jpg

QUICKFIND

/O/R

(no value)

Example: CLI QUICKFIND

<search string>

Prefix with noselect: to place the cursor at the end of the string instead of initially selecting it for typing over.

Example: CLI QUICKFIND di Example: CLI QUICKFIND noselect:di

QUICKFINDREPEAT

/O

(no value)

Repeats the last QUICKFIND. The behaviour of this command depends on the state of the Keep highlights visible after field closes Preferences setting.

If highlights are shown even after the FAYT field closes, QUICKFINDREPEAT shifts focus to the next match. If highlights are not shown, QUICKFINDREPEAT repeats the last find, searching for matches again in the current folder, using the same search string as last time.

Example: CLI QUICKFINDREPEAT

next

Explicitly searches for the next match, whether highlights are visible or not.

Example: CLI QUICKFINDREPEAT=next

prev

Explicitly searches for the previous match, whether highlights are visible or not.

Example: CLI QUICKFINDREPEAT=prev

QUICKFOLDERS

/O/R

(no value)

Example: CLI QUICKFOLDERS

<search string>

Prefix with noselect: to place the cursor at the end of the string instead of initially selecting it for typing over.

``CLI QUICKFOLDERS noselect:C:\`

QUICKFTPCMD

/O/R

(no value)

Example: CLI QUICKFTPCMD

<command>

Prefix with noselect: to place the cursor at the end of the command instead of initially selecting it for typing over.

Example: CLI QUICKFTPCMD chmod * 755 Example: CLI QUICKFTPCMD noselect:chmod *

QUICKGO

/O/R

(no value)

Example: CLI QUICKGO

<path>

Prefix with noselect: to place the cursor at the end of the path instead of initially selecting it for typing over.

Example: CLI QUICKGO C:\Program Files ``CLI QUICKGO noselect:C:\`

QUICKRANGE

/O/R

(no value)

Example: CLI QUICKRANGE

<range>

Prefix with noselect: to place the cursor at the end of the range string instead of initially selecting it for typing over.

Example: CLI QUICKRANGE 1-10,20-30 Example: CLI QUICKRANGE noselect:1-10

QUICKSEARCH

/O/R

(no value)

Example: CLI QUICKSEARCH

<query term>

Prefix with noselect: to place the cursor at the end of the query string instead of initially selecting it for typing over.

Example: CLI QUICKSEARCH author:davidson Example: CLI QUICKSEARCH noselect:author:davidson

QUICKSEARCHENGINE

/K

<engine>[,<options>]

Use with the QUICKSEARCH argument to specify the search engine to use in Search mode. Each search engine has its own set of options which can also be included in the command.

Example: CLI QUICKSEARCH A\*.jpg QUICKSEARCHENGINE everything,case

Engine

Description

Options

everything

Search the current folder using Everything

case

diacritics

wholeword

regexp

everythingglobal

Search the whole system using Everything

case

diacritics

wholeword

regexp

opus

anywords

case

content

nodiacritics

nonames

nopartial

nowild

utf8

windows

Search the current folder using Windows Search

noautowildcard

nqs

QUICKSELECT

/O/R

(no value)

Example: CLI QUICKSELECT

<pattern>

Prefix with noselect: to place the cursor at the end of the pattern instead of initially selecting it for typing over.

Example: CLI QUICKSELECT *.doc Example: CLI QUICKSELECT noselect:*.doc

QUICKTABS

/O/R

(no value)

Example: CLI QUICKTABS

<pattern>

Prefix with noselect: to place the cursor at the end of the text instead of initially selecting it for typing over.

Example: CLI QUICKTABS docu Example: CLI QUICKTABS noselect:docu

QUICKWSLCMD

/O/R

(no value)

Example: CLI QUICKWSLCMD

<command>

Prefix with noselect: to place the cursor at the end of the command instead of initially selecting it for typing over.

Example: CLI QUICKWSLCMD ls Example: CLI QUICKWSLCMD noselect:ls

SCRIPTMODE

/O

(no value)

Example: CLI SCRIPTMODE

<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.

Example: CLI SCRIPTMODE=jscript

TITLE

/K

<command>

Defines the window title when opening a PowerShell prompt.

Example: CLI DOSPROMPT=powershell TITLE="Windows PowerShell"

最后更新于