>Hi Luc,
>
>
>> I am looking for a funtion that return the pathname of the
>> windows system directory.
>
>The easiest one is:
>
> ? GETENV("WINDIR")
That gets the environment's Windows Directory, not the system directory, and is frobbable. There's a Windows APIU call GetSystemDirectory() documented in the API section and in the FAQ that does this correctly, and you can use the WSH SpecialFolder's or the SHGetFolderPath() API call as well, and not have the risk of screwing the pooch.