Make it yours

Command line

Starting Leo Explorer

The program is leo-explorer.exe, in %LOCALAPPDATA%\Programs\Leo Explorer when installed. Use its full path, or add that folder to your PATH.

leo-explorer [folder] [--second folder] [--hide-tree] [--view mode] [--filter text]
  • folder opens that folder; --second opens a second display on another folder.
  • --view takes details, list, small, large, tiles or thumbnails.
  • --view and --filter apply to that start only; they don't change your settings.

Controlling a running Leo Explorer

leo-explorer --send <command> [words…]

sends a command to the Leo Explorer that's already running, and prints its answer. It acts on the window in front, or the newest one.

CommandWhat it does
pathPrints the folder shown in the active display
selectedPrints the selected items, one per line
go <folder>Shows a folder in the active display
new-tab <folder>Opens a new tab on a folder
new-window [folder]Opens a new window
select <pattern>Selects the items that match, such as *.jpg
run <command>Runs a toolbar command by its id, such as dual or select.all
layout <name>Opens a saved layout
style <name>Gives the window a style
helpLists these commands

Examples

# Show the Downloads folder and select the PDFs in it
leo-explorer --send go "$env:USERPROFILE\Downloads"
leo-explorer --send select *.pdf

# Do something with what's selected
leo-explorer --send selected | ForEach-Object { Get-FileHash $_ }

Each running Leo Explorer only accepts commands from programs running as the same Windows user.