Shell Commands

Top  Previous  Next

Every item on the Project Explorer and Library Explorer corresponds to a folder or a file on the disk. Using Shell Commands you can call external programs and pass the names of these folders or files to them.

"Shell" sub-menu will appear on the context menu wherever possible when you right click on the tree items on Project Explorer and Library Explorer.

ShellCommand
Standard Shell Commands

Open with Associated Program

Opens the file with the associated program.

Open with mmEd

Opens the file with mmEd (MoreMotion XML Editor).

 

Open Folder

Opens the folder the item is located in.

Custom Shell Commands

You can also define your own shell commands. You can, for example, interact with your configuration control system by defining the related command line commands.

To access to the dialog where you can define your own Shell Commands use "Tools | Shell Commands".

ShellCommandDialog

With the buttons on the top of the dialog you can Add, Edit and Delete a shell command. You can also change the order of the commands in the Shell Context Menu.

See below an example for defining a new shell command.

ShellCommandDefineNew

If you check the "Explorer command" option the command will appear on the Shell Context menu. If you leave it unchecked the command will be accessible through "Tools" menu.

After you define your own shell commands they will appear on the Shell Context as follows.

ShellCommandUsing

 

The %() symbols that can be used in "Parameters" Field
 

%(fn)

File Name

%(fe)

File Extension

%(ffn)

Full File Name

%(ffnwe)

Full File Name Without Extension

%(dn)

Directory Name

 

Examples

Assumptions:

Project Path:

c:\mmprojects

Project name:

Project1

Library Path:

l:\mmlib

Page Node "index", which is in "Site1", is selected.
 

Symbol

Value

%(fn)

index

%(fe)

mmpa

%(ffn)

c:\mmprojects\Project1\Site1\index.mmpa

%(ffnwe)

c:\mmprojects\Project1\Site1\index

%(dn)

c:\mmprojects\Project1\Site1\

 

 

Project Node is selected

Symbol

Value

%(fn)

@

%(fe)

mmpr

%(ffn)

c:\mmprojects\Project1\@.mmpr

%(ffnwe)

c:\mmprojects\Project1\@

%(dn)

c:\mmprojects\Project1\

 

 

Site Node "Site1" is selected

Symbol

Value

%(fn)

Site1

%(fe)

mmsi

%(ffn)

c:\mmprojects\Project1\Site1.mmsi

%(ffnwe)

c:\mmprojects\Project1\Site1

%(dn)

c:\mmprojects\Project1\Site1\

 

 

Library Element Node "mor\Common\Listbox" is selected

Symbol

Value

%(fn)

Listbox

%(fe)

mmel

%(ffn)

l:\cpn\mor\Common\Listbox.mmel

%(ffnwe)

l:\cpn\mor\Common\Listbox

%(dn)

l:\cpn\mor\Common\

 

Project Library Element Node "myListbox" is selected

Symbol

Value

%(fn)

myListbox

%(fe)

mmel

%(ffn)

c:\mmprojects\Project1\plib\myListbox.mmel

%(ffnwe)

c:\mmprojects\Project1\plib\myListbox

%(dn)

c:\mmprojects\Project1\plib\