Hi Guys,
I have set Windows 2000 to run a task using schedule task. The script that I wrote needs to know some environment variables such as ComSpec, HOMEDRIVE and HOMEPATH. I can get env var ComSpec without any problems but I cannot get env var HOMEDRIVE and HOMEPATH. It seems to me that schedule task doesn’t by pass some parameter in User Profile to environment such as Home Directory. I can run this script at command prompt so my script works properly.
Anyone knows how to get these env variables from the script when running it in schedule task.
Thanks in advance.
Nopadon H. (Kim)
Email: nopadon@agere.com