hi !!!I have the following code to read path string from the registry.-------------------------------------szKey = "SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment";RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);RegDBGetKeyValueEx (szKey, "...