%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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top