Re: Windows Service Doesn't See New Environment Variable

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jerold Schulman (Jerry_at_jsiinc.com)
Date: 12/10/04


Date: Fri, 10 Dec 2004 11:03:47 -0500

On Fri, 10 Dec 2004 07:51:02 -0800, Andreas Vollmer <AndreasVollmer@discussions.microsoft.com> wrote:

>I am using Windows 2000 Server. I have the situation, that an environment
>variable is set through a program during runtime.
>
>Then, a Windows service, which was started prior to ceation of the
>enviroment variable, should interpret the value of the variable. It seems
>that the service doesn't see the variable at all.
>
>Can anyone explain this behaviour? In general, is it possible, that a
>certain service or program, which is already running, can react to the change
>of an environment variable without being restartet?

See if tip 4928 in the 'Tips & Tricks' at http://www.jsiinc.com helps.

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com