![]() |
Error expanding macros in property Message
Hi,
I have a step in my build script that sends an email. The message body of the email comes from a (dynamic) html file. I include it in this way: [vbld_FSO.OpenTextFile("%TEMP_LOG%").ReadAll()] Sometimes (I suspect when % signs are being used within the dynamic file) the following error occurs: Error expanding macros in property Message: Could it be that the loaded content is being parsed? If yes, how can I prevent this parsing from happening? Thanks in advance, Jan |
Yes, any percent (%) or square bracket ([]) chars in a step field are interpreted as macro/script markers. Use
[vbld_GetFileContents("%TEMP_LOG%")] instead, which will double up these characters in the specified file so they will be treated as literals by VBP. |
All times are GMT -5. The time now is 12:08 PM. |
Copyright © 1999-2023 Kinook Software, Inc.