>The same for WinNT.
>
>Vlad
>
>>For W95 you can do GETENV('WINDIR').
I used the GETENV('WINDIR') and it worked on both Win95 and My NT, but when I move it out to the client (NT Server I dial into), it kept coming back "". I opened the properties on the clints "My Computer" and under environment, it listed windir as d:\winnt, but the GETENV('WINDIR') kept returning blank, I am going to try the dll calls that Ed sent.