It turns out this is a bug (or perhaps not - but here's the workaround)
Normally, the predefined variables such as GPOPATH can be used in say a messagebox: This is the path: $GPOPATH$
However, I have found that when using the "if" command, the predefined variables cannot be dereferenced, at least not directly. Instead, I had to do the following:
Code: Select all
Set Variable GPOPathInfo to $GPOPATH$
if Variable GPOPathInfo Contains (Ignore Case) ...
...
whereas this does not work:
Code: Select all
if Variable GPOPATH Contains (Ignore Case)
(you get the compiler error GPOPATH not defined.
I hope this helps someone else if they run into this problem.
=-Chris