Environment var in scheduled task - TechRepublic
General discussion
March 15, 2001 at 03:33 PM
nopadh

Environment var in scheduled task

by nopadh . Updated 25 years, 3 months ago

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

This discussion is locked

All Comments