skip to main content
Advanced Customizations, Overrides, and Extensions » ePublisher Platform XSLT Extensions » Exec » XPathNodeIterator ExecuteProgramWithArgumentsInDirectory (string directoryPath, string program, string arguments)
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')" />
Was this helpful?
Last modified date: 10/14/2020