For both Al and Pascal ... Pascal Obry wrote: > > Yes and the best solution could be POSIX. It is compiler and platforms > independant. > > Look at Florist for a UNIX implementation and under my homepage for > a partial (yet very usefull) POSIX for Win32. > > Pascal. > Pascal is quite right. I've used his Win32POSIX packages successfully on Windows systems (i.e., 95/98/NT). I've also used them with ObjectAda 7.1.2a at work and with GNAT 3.11p at home, and have never experienced a problem. The POSIX package bodies show how the Win32 API can be used to implement the POSIX functionality and thus are quite instructive for those learning the Win32 API. A great example is demo6 in the aforementioned Win32POSIX binding. Is uses the package POSIX.POSIX_Process_Environment and demonstrates its many services for dealing with environment variables and strings. So Al, although the Win32 API is popular, I would suggest that you tuck my previous example code into a nice bit bucket somewhere and follow the example shown in the demo6 program. Pascal rightly points out that POSIX is a much more portable means of dealing with environment variables, and other operating system services as well. Regards, Jeffrey D. Cherry Logicon Geodynamics