Commands & Syntax > Commands > Run/Execute >

www.perfectkeyboard.com

 

FILE CONTEXT MENU COMMAND - < run_ctxcommand >() ... [Pro]

 

Run FILE CONTEXT MENU COMMAND
<run_ctxcommand>("File path",Menu command,Unused,Unused)
Available in: Professional edition

This command performs specified Windows shell "context menu command".
Note: When a user right-clicks on a file in Windows Explorer a menu so called "context menu" is shown. There are listed several commands a user can perform on the file (like "Open", "Delete", "Copy", etc.).

 

#

Parameter name

Parameter description

1

File path

(Full) path to the file (e.g., "c:\mydocuments\doc1.doc") to run a command on. Can be a static text or variable containing text.

2

Menu command

Menu command as shown on the menu. For example: Open, Copy, Delete, etc. If the command is in submenu then use "\" to separate submenu. Example: Send To\My Documents, WinZip\Add to Zip file..., etc. Commands can contain also wildcards (* and ?). Example: WinZ*\Add

3

Unused

Must be 0.

4

Unused

Must be 0.

 

Example (Macro Steps):

 

1

<#> <#> This command opens property dialog of "C:\temp" directory

2

Macro execution: ONLY COMMANDS

3

Run FILE CONTEXT MENU COMMAND "Properties" on file "c:\temp"

Example (Plain Text):

 

<#> This command opens property dialog of "C:\temp" directory

<#>

<cmds>

<run_ctxcommand>("c:\temp",Properties,0,0)