1. add a 'New' build tool to Project>Properties>Tools tab, add the commandline commands (incl. wildcards as project dir etc.) to and check the appr. 'capture' items. In a macro you can use 'project_build ( "<Tool name>" );'
2. create a macro like this simple example:
_command void ddir () name_info (','VSARG2_EDITORCTL)
{
activate_build ();
_str cmdline=get_env ("COMSPEC") " /c dir" " 2>&1";
concur_command (cmdline, false, true, false, false);
// optional: set focus back to edit win.
cursor_data();
}
I'd prefer 1. b/c it uses the standard method and will get improved support in the future (e.g. error markers w/o any add. hacks/workarounds).
If you can't wait and really want error markers for user added build tools I can post the workaround I'm using.
Note it's using a deprecated method although there is no other possibilty curr. available.
HS2