quote:
Originally posted by deAd
The language changes affect the path to the Custom Sounds
ermm.. no it doesn't... if it does then you take a totally wrong approach in getting the directory.
Moreover, the custom sound directory isn't always located in application directory under "documents and settings" directory either, but can be located in a subdirectory of the Messenger Plus! directory under "program files"!...
I didn't took a look at your script, but never ever hard code a path. Second, never ever use the "Special Folders" registry key to get to special folders like "Documents and settings". Never ever use environment variables to get to it. What you should do is using Windows API like SHGetSpecialFolderPath and the likes.
EDIT: after reading your post further I see you indeed hard coded the path. This is the worst method you can do actually (even reading the special folders key in the registry is a better method than that).