ePublisher Platform XSLT Extensions
XPathNodeIterator ExecuteProgramWithArgumentsInDirectory (string directoryPath, string program, string arguments)
 
Runs the specified program with arguments formatted as a string in the specified working directory.
Parameters:
directoryPath
Full pathname of the directory.
program
The program.
arguments
The arguments.
Returns:
A node set.
Execute prettycool.exe –stdout "Isn't this grand?" –stderr nothing in the directory C:\ workingdir.
<xsl:variable name="VarExecResult" select="wwexec:ExecuteProgramWithArgumentsInDirectory('C:\\workingdir', 'prettycool.exe', '--stdout &quot;Isn\'t this grand?&quot; --stderr nothing')" />