On 10/05/2010 01:16 PM, CARMONA Jean-Luc wrote:
> 
> How can we read the environment variable % TEMP% in a command XXE. Example:
> 
>  
> 
> <mkdir dir="%TEMP%%S%R.doc" quiet="true"/>
> 

The above <mkdir> element is part of a process command. A process
command has no access to environment variables. A process command has
access only to the variables described here:

http://www.xmlmind.com/xmleditor/_distrib/doc/commands/process_variables.html

However, a process command is always executed in its own private
temporary directory and this private temporary directory is always
created inside the ``system'' temporary directory (which is pointed to
by %TEMP%).

Hence:

<mkdir dir="%W%S..%S%R.doc" quiet="true"/>

should work fine whatever the platform.
 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to