Zactek,

You should be able to use %APPDATA% as the variable. Just went to a command prompt and typed in SET to see what Environment Variables are available.

Also, you could do this from the Registry:
 Code:
$AppData = READVALUE('HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders','AppData')

This is also included in Doc's code. Probably the easiest way to do this is at login. Sure, you could do this remotely, but will be more difficult.

HTH,

Kent


Edited by Kdyer (2008-06-25 04:53 PM)
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's