I think %programfiles%\mIRC\ makes the most sense by far, seeing as it is a program file :tongue:
Khaled could maybe check if it's running on XP64 somehow when he decides to switch to that, but mIRC is still a 32bit program.
That won't work - the environment variable is set to the native Program Files regardless of the type of program. The correct solution is to call the Windows API call SHGetSpecialFolderPath with CSIDL_PROGRAMFILES.
SHGetFolderPath is a Win2000 superset of SHGetSpecialFolderPath. Use SHGetSpecialFolderPath instead.