User Configurable Buttons


If you click the menu command Options...Show user-configurable buttons three more buttons will appear at the right of the toolbar. You can set up these buttons to run other programs from within TABmate.

Right-click on each button to see or change its configuration. You can set:

the name of the button to appear on the toolbar.

the program to run.

parameters for the program

the directory for the program to start in. If this is left blank, the program will start in the same folder as the currently open file.

For example, if you set:

program:        ViewHAR

parameters:        temp.har

The button would launch Viewhar and open the file temp.har

Under Windows XP or later, built-in commands such as dir or copy which are part of the CMD shell may be run by setting:

program: cmd

parameters: /C copy temp.har sav

In the above example a command prompt appears which closes after the copy command is executed. To keep the command prompt open, use the /K option, eg:

program: cmd

parameters: /K dir/w *.log

You can include special codes in the program , parameters and directory boxes which are translated according to the name and location of the current file: The codes are:

%f

Current Files Full Path and Name

%d

Current Files Drive

%p

Current Files Path

%n

Current Files Name

%t

Current Files Type (suffix or extension, including dot)

%B

Directory where TABmate.exe is located (eg. C:\GP)

For example If the active file is c:\project\job3.tab the symbols below translate as:

%f

c:\project\job3.tab

%d

c:

%p

c:\project

%n

job3

%t

.tab

%p\%n%t

c:\project\job3.tab

%p\%n.log

c:\project\job3.log

So, if you set:

program:

cmd

parameters:

/K copy %f c:\temp

the currently open file would be copied to c:\temp.

Use the Preview button to see how the parameters will be translated.

If you want a button to launch a sequence of commands, create a batch [BAT] file containing them, and put the name of the BAT in the program box. Hint: place PAUSE as the last statement in the BAT to keep it open.



URL of this topic: www.copsmodels.com/webhelp/tabmate/hc_usrbtn.htm

Link to full GEMPACK Manual

Link to GEMPACK homepage