> I'm suprised that no-one has mentioned this yet but In > windows 2000 group policies (there are also other ways > to do this) you can use 'folder redirection' to > redirect special folder such as 'my documents' to > another location. ou don't have to use a server based > profile (ie: roaming) to do this. Because of this the > solution proposed that you just append 'my documents' > to the userprofile environment variable location will > not always work. It's always safer to pull the > location from the registry in a way that has already > been mentioned. I think using an API call is overkill > personally.
Unless you take the time to get to know Microsoft better, and then you'll understand why it's not. Someone else did mention using the registry, however. The reason I didn't mention the 'folder redirection' was because the registry retrieval method is likely to suffer someday from the same problem as the environment variable method does now, so the point is moot. Unless you're using the same method that Microsoft does to get the value (which is the API), then you're not insured against future changes to the OS. Sure the registry is easy to get and might work for now, but when the API call is there and setting up the call will only take about 5 more minutes than using the registry, why not use it? jpt _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs