Tools Menu Customization (Windows CE 5.0)

Send Feedback

You can customize the Tools menu by adding, editing, and deleting menu items. You can add frequently used utilities to the Tools menu and then run them within Platform Builder.

You can add up to 16 commands to the Tools menu. These commands can be associated with any application that will run on your OS. You can also specify arguments for any command you add to the Tools menu.

You can use argument macros to specify arguments for a Tools menu command.

The following table shows the argument macros that Platform Builder provides.

Macro name Expanded string contents
$(CurCol) The current cursor column position within the active window.
$(CurDir) The current working directory, which is defined as the drive plus the path.
$(CurLine) The current cursor line position within the active window.
$(CurText) The current text, which is the word under the current cursor position, or a single-line selection, if there is one.
$(FileDir) The directory of the current source, which is defined as the drive plus the path; the string is empty if a nonsource window is active.
$(FileExt) The file name extension of the current source.
$(FileName) The file name of the current source, which is defined as the file name; the string is empty if a nonsource window is active.
$(FilePath) The complete file name of the current source, which is defined as the drive plus the path plus the filename; the string is empty if a nonsource window is active.
$(TargetArgs) The arguments that are passed to the application. To set these arguments, choose the Settings command from the Project menu and then type the argument in the Program Arguments box on the Debug tab.
$(TargetDir) The directory of the current target, which is defined as the drive plus the path.
$(TargetExt) The file name extension of the current target.
$(TargetName) The file name of the current target, which is defined as the file name.
$(TargetPath) The complete file name of the current target, which is defined as the drive plus the path plus the file name.
$(WkspDir) The directory of the current workspace, which is defined as the drive plus the path that contains the workspace (.pbxml) file. The string is empty if no workspace is open.
$(WkspName) The current workspace name, which is defined as the file name without the .pbxml extension. The string is empty if no workspace is currently open.

Note   Macro recognition is not case-sensitive. All path macros end in a backslash (\), which is added automatically.

To use a macro as an argument, type the macro name in the Arguments box. Or, for macros that expand to a directory, type the macro name in the Initial Directory box.

See Also

Adding a Command to the Tools Menu | Editing a Command on the Tools Menu | Removing a Command from the Tools Menu | Specifying Arguments for a Command on the Tools Menu

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.