PDA

View Full Version : Use Regular Expression on command output


SuperJason
06-24-2005, 12:26 PM
I'm running a subversion command line (svn info), and I want to use a regular expression to grab part of the output. Is there a way to do that without first writing it to a file?

kinook
06-24-2005, 02:18 PM
The step's output is available in the LASTSTEP_OUTPUT system macro. You could access it from the step's vbld_StepDone script event [1] like this:

Application.Macros(vbldMacroSystem)("LASTSTEP_OUTPUT").Value

[1] http://www.visualbuild.com/Manual/?scriptevents.htm