Microsoft Deployment Toolkit
Documentation Library HRESULT ReplaceVariables(LPCTSTR source, [out] LPBSTR pDest) |
This method handles working with variables inside string values. It supports the formats shown in Table 51 and Table 52.
Table 51. HRESULT ReplaceVariables
Format |
Description |
$Name$ |
Replaces the value of a memory variable with this name (If there is no memory variable with the name, the “token” will be removed.) |
%Name% |
Either a task sequence variable or an environment variable. The order is as follows: 1. Use the value of a task sequence variable, if present. 2. Use the value of an environment variable, if present. 3. Otherwise, remove this text from the string. |
Table 52. HRESULT Parameter
Parameter |
Description |
Source |
The input string, which can contain any combination of $ and % variables or none at all |
pDest |
On return, contains a new string that has all the tokens replaced according to Table 51 |
Related Topics