From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <951115140240.204001ac@uvphys.phys.UVic.CA> Date: Wed, 15 Nov 1995 14:02:40 -0800 (PST) From: Nik Zapantis, UVic Physics, Victoria BC Subject: Problem with ENV variables Hi all, I have an Alpha 200 4/100 WNT 3.51 system and I am having a problem with the setting of an env. variable. I am trying to define the MOSAIC.INI file to point to a user's directory. point to C:\users\%USERNAME%\mosaic.ini Click on set and the variable is set to C:\users\current-user-name\mosaic.ini Windows NT diagnostics-->Environment also show the variable correctly set. The problem is that Mosaic does not see it and it cannot find the mosaic.ini file. Also, if I open a command window (MSDOS) and do a SET or ECHO %MOSAIC.INI% I get C:\users\%USERNAME%\mosaic.ini returned. It appears that the %USERNAME% variable is not correctly substituted. If I redefine the MOSAIC.INI variable in the command window, the variable now reflects the correct path. It looks as though the %USERNAME% is not defined when the MOSAIC.INI is declared. Is this what is causing the problem, or am I missing something? BTW, for now, I have forced mosaic to use the proper mosaic.ini file by using the -i switch at the command line. thanks, +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | Nik Zapantis | zapantis@uvphys.phys.UVic.CA | | Dept. of Physics & Astronomy | 45393::zapantis(HEPnet/SPAN) | | University of Victoria | http://info.phys.UVic.CA/ | | PO BOX 3055, MS 7700 | | | Victoria, BC | Phone: (604)721-7729 | | V8W 3P6 | FAX: (604)721-7715 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++