/Run(<parameters>, <command line>, <work folder>)

Execute external application or command.

 

<parameters> (can be combined via "+"):

Admin – open in admin mode. Applies to standard applications as as any executable files.

Power – open PowerShell instead of Cmd.

 

Following parameters applicable when starting one of standard applications:

Explorer – open Explorer.

Console – open command window.

 

Parameters for running any executable file:

Current – run current file or open folder from the active file list.

CmdLine – run comand(s) from the command line.

NoErrorUI – silence possible error.

OpenWith – open with...

TryOpenWith – if running fails, try running with another command.

InConsole – run executable file / command in the command window. Don't close the command window on exit.

InConsoleClose – run executable file / command in the command window, closing it on exit.

InConsole2 – try running the command in the command window (if there is no executable file). Don't close the command window on exit.

InConsoleClose2 – same as InConsole2, but close the command window on exit.

Min – run executable file minimized.

Max – run executable file expanded.

Silent – run executable file in a hidden window.

 

<command line>:

Optional path to the executable file, relative or absolute. Variables substitution is supported.

<command line> applies when there are no Explorer, Console or CurrentFile in <parameters>.

 

<work folder>:

Optional work folder. Variables substitution is supported.

 

 

Examples

/Run(, "C:\Test file.txt") - incorrect command line. The parameter is wrapped into quotes, but the command gets treated as execution of file "C:\Test" with parameter "file.txt".

/Run(, """C:\Test file.txt""") - correct command line, opens "C:\Test file.txt" file

/Run(, """C:\Some application.exe"" ""some parameter""") - correct execution of an application with parameters.

/Run(, """%aActiveFullFile%""") - variable may contain whitespaces , and should better be wrapped into quotes.

 

 

List of commands