Re: seting global variables in NT

Valery Fine (fine@mail.cern.ch)
Fri, 3 Oct 1997 23:16:11 +0100


On 3 Oct 97 at 15:25, Andy Haas wrote:

> Hi,
> I'm just getting started with root and don't understand how to
> set
> the ROOTSYS and PATH variables in WinNT so that I can run the
> tutorials. Thanks for your help in adavance, Andy.
>

You may

1. Create a batch file like this:

set ROOTSYS=c:\root
path %rootsys%\bin;%path%
root

and then create shortcut for this file on your desktop

- This way one creates environment for only ROOT session

2. Start "Command prompt"
Perform all above "by hand"

3. Select
"My Computer" with "Right mouse button" -> Properties ->
Environment ->

Variable: ROOTSYS
Value : c:\root

Variable: PATH
Value: %ROOTSYS%\bin;%PATH%

- This way one registers ROOTSYS variable and change PATH with
his profile and it affects all his application and sessions.

Under the Administrative account one can set this for System
variables as well and this will affect ALL users of his
computer.

Hope this helps,
Valery
Dr. Valeri Faine (Valery Fine)
------------ ------------- Phone: +41 22 767 4921
CERN FAX : +41 22 767 7155
CH-1211 Geneva, 23 mailto:fine@mail.cern.ch
Switzerland http://nicewww.cern.ch/~fine