You can access the environment vars directly, just as you can in bat files - %ENVVARNAME%.

So...
 Code:
If InStr(%APPDATA%, 'xyzzy')
  ; do stuff the change the APPDATA variable
EndIf


Glenn
_________________________
Actually I am a Rocket Scientist! \:D