quote:
Originally posted by CookieRevised
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 the "documents and settings" directory either...
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 code 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).
I
did hard code the path, I hadn't thought of using the script in different languages. Also, when would the path to the Custom Sounds change? AFAIK they're always in the same directory.