I think getenv('userprofile') gives you a better base path to "my docments", but there's API calls if you want to assure you get this special folder, even if it is not in it's default path.
See http://doughennig.blogspot
Besides that, Sedna addon for VFP9 offers the 'my' object, where you find this functionality in:
MY.Computer.FileSystem.Spe
Last not least on Vista SHGetSpecialFolderLocation
Bye, Olaf.
Main Topics
Browse All Topics





by: jrbbldrPosted on 2009-06-29 at 13:36:06ID: 24739976
SYS(2023) will give you the current Temp directory.
From knowing that information you should be able to determine the path for anything else you need.
Good Luck