I derived these simple examples from my stuff. Maybe it's useful for you.
#include 'slick.sh'
#define DevEnv "C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Common7\\IDE\\devenv.exe"
// example starting a GUI app
_command void devenv () name_info (','VSARG2_EDITORCTL)
{
_str DevEnvCmd = maybe_quote_filename ( DevEnv );
// check for current workspace being a Solution
if ( pos (VISUAL_STUDIO_SOLUTION_EXT, _workspace_filename, 1, 'I') )
strappend (DevEnvCmd, " " maybe_quote_filename ( _workspace_filename) );
// HS2: dbg
message (DevEnvCmd);
shell (DevEnvCmd,"AP");
}
// example starting a console app w/ redirected output to 'Build' tab
_command void ddir () name_info (','VSARG2_EDITORCTL)
{
_str cwd=_ProjectGet_WorkingDir (_ProjectHandle (_project_name));
if ( cwd != '' )
{
cwd=absolute (cwd,strip_filename (_project_name,'n'));
cd (cwd, 'm');
}
activate_build ();
_str cmdline=get_env ("COMSPEC") " /c dir" " 2>&1";
concur_command (cmdline, false, true, false, false);
// switch focus back to edit win
// activate_edit ();
}
Good luck !
HS2