10.5.2 Pass Variables to External Tools
You can specify that certain information is passed to a command when it is launched, such as command-line switches for console applications.
Fill in the Arguments box with the necessary launch arguments, either manually or using the
auto-fill button.The auto-fill argument button can provide you with the macros described in the table below.
Name | Argument | Description |
---|---|---|
Item Path | | The complete filename of the current source (defined as drive + path + filename); blank if a non-source window is active |
Item Directory | | The directory of the current source (defined as drive + path); blank if a non-source window is active |
Item File Name | | The filename of the current source (defined as filename); blank if a non-source window is active |
Item Extension | | The filename extension of the current source |
Current Line | | The current line position of the cursor in the editor |
Current Column | | The current column position of the cursor in the editor |
Current Text | | The selected text |
Target Path | | The complete filename of the item to be built (defined as drive + path + filename) |
Target Directory | | The directory of the item to be built |
Target Name | | The filename of the item to be built |
Target Extension | | The filename extension of the item to be built |
Binary Directory | | The final location of the binary being built (defined as drive + path) |
Project Directory | | The directory of the current project (defined as drive + path) |
Project filename | | The filename of the current project (defined as drive + path + filename). |
Solution Directory | | The directory of the current solution (defined as drive + path) |
Solution filename | | The filename of the current solution (defined as drive + path + filename) |