Show/Hide Toolbars

 PhraseExpander 5 Manual

Navigation: Designing templates > Macros > Automation

Run application / open folder

Scroll Prev Top Next More

interactive

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]: run the application as Administrator

 0 (default) - Standard user

 1 - Admin user

[existing]: activate the application if already running

 0 (default) - launch a new instance

 1 - activate the existing instance

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

 0 (default) - Normal window

 1 - Minimized window

 2 - Maximized window

 

Example

Template:

{#run c:\windows#}

 

Result:

opens the c:\windows folder

 

Template:

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

 

Result:

opens notepad with the mydata.txt document

Created with Help & Manual 7 and styled with Premium Pack Version 3 © by EC Software