Quick Commands Examples

Quick Commands Examples for the Button Editor or the Script Editor.

Set view filter

Set the filter for the files and/or folders that should be visible in the file manager

MC.Explorer.SetViewFilter FILTER="*.jpg"
MC.Explorer.SetViewFilter FILTER="*.jpg *.gif *.png *.tiff"

Exclude folders named ".svn"

MC.Explorer.SetViewFilter FILTER="-/.svn"

Select files and folders

Select files and/or folders in the file manager.

MC.Explorer.Selection.Select FILTER="*.jpg *.png"

Run Application

Run an external application.

MC.Run CMD="Notepad.exe"

Run an application with parameters

MC.Run CMD="Notepad.exe" ARG="c:\myFile.txt"

Run external application as Administrator.

MC.Run CMD="Notepad.exe" ADMIN

Let Windows decide how a file should be opened. In the example below, Windows will open it in your default browser.

MC.Run CMD="http://www.google.com" SHELL

Run an external application with the file in focus as its argument.

MC.Run CMD="MyApp.exe" ARG="{focusfile}"
MC.Run CMD="MyApp.exe" ARG="-a -f -i:{focusfile}"