Characters like percentage (%) and dollar sign ($) are used for environmental or system variables, when those characters are needed in strings for specific functions then they are evaluated and might lose the correct purpose.
This applies to all elements, like Registry, Message Box, Application Launcher, etc.
When special characters are needed, escape character '%' can be used to keep the original string and prevent it from being replace when script is executed.
The characters @, %, or $ are normally used to indicate macros, environment strings, or variables. If any of these characters are needed in a string, @@, %%, or $$ must be used.
For example, using the string %LOGONSERVER%\netlogon will return \\SERVER1\netlogon if SERVER1 is the value for LOGONSERVER environmental variable, while the string %%LOGONSERVER%%\netlogon will return the string %LOGONSERVER%\netlogon without resolving the variable's value.
If hidden shared folders are going to be mapped, then the escape character for the dollar sign will be another dollar sign ($), this is if shared folder is \\servername\foldername$ then the UNC for that mapping drive in drive mapping element will be \\servername\foldername$$
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center