Run Application / Open Folder

Top  Previous  Next

Use this macro to launch an application or open a document / folder.

Syntax

 

{#run filename -[param][runIn][admin][window]#}

filename: the name of the file or folder to execute

[param]: command-line parameters to be passed to the application

[runIn]: launch the application from this folder. Optional but required by certain applications

[admin]: this option is available in Windows 8, 7 and Vista, and allows to run the application as Administrator

 0 - Standard user

 1 - Admin user

[window]: define the size of the application window:

 0 (default) - Normal window

 1 - Minimized window

 2 - Maximized window

 

Example

Phrase:

{#run c:\windows#}

 

Result:

opens the c:\windows folder

 

Phrase:

{#run c:\windows\notepad.exe -[param=d:\mydata.txt]#}

 

Result:

opens notepad with the mydata.txt document