====== ExpandTemplate ======
Method of [[:scripting:api:application:start|IApplication]]
===== Description =====
Expand template code
===== Parameters =====
* [[scripting:api:data-type:BSTR|BSTR]] **strChars**
* [[scripting:api:data-type:VARIANT_BOOL|VARIANT_BOOL]] **bInteractive** = VARIANT_FALSE (optional)
* [[scripting:api:data-type:VARIANT_BOOL|VARIANT_BOOL]] **bUrlEscape** = VARIANT_FALSE (optional)
* [[scripting:api:data-type:VARIANT_BOOL|VARIANT_BOOL]] **bQuotePath** = VARIANT_FALSE (optional)
* [[scripting:api:data-type:BSTR|BSTR]] **strInitialDir** = %%""%% (optional)
==== Return Value ====
* [[scripting:api:data-type:BSTR|BSTR]] **strResult**
===== Syntax =====
==== JavaScript ====
var strResult = Application.ExpandTemplate(strChars, bInteractive, bUrlEscape, bQuotePath, strInitialDir);
==== Visual Basic Script ====
strResult = Application.ExpandTemplate strChars, bInteractive, bUrlEscape, bQuotePath, strInitialDir
==== C++ ====
BSTR strResult;
HRESULT hr = Application.ExpandTemplate(strChars, bInteractive, bUrlEscape, bQuotePath, strInitialDir, &strResult);
===== See Also =====
[[:scripting:api:application:start|IApplication]]
~~NOTOC~~