%APPDATA% not available in scheduled tasks?

Joined
Sep 22, 2005
Messages
1
Reaction score
0
Hi,

I've created several .cmd files in order to do some maintenance. On of this script is reading a file which is located in %APPDATA%. I discovered that %APPDATA% is not available when i scheduled this script :confused: (Os is Windows 2003) Scheduling this script with "CMD /K" instead of calling this script directly didn't solve the problem.

I created a solution for this by replacing %APPDATA% with "%USERPROFILE%\Application data", but I was wondering if this is a known issue? Are there other solutions?
 
Back
Top