i want to know if there is a api for getting application data folder in windows xp!!
like getsystemdirectory or getcurrentdirectory n does the path like(
c:\documents and settings\"username"\local setings\.. )does this type of path varies for different windows versions!!:)

getting application data folder!!
Caltor
It seems that
My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData
is not working... : when you debug the application : everything is fine, but when you publish it. It points to the application folder.
Which means that if you want to put a configuration file there ... it will be deleted during the next update !!
Rashiel
Hi,
For ClickOnce published application, I think IsolatedStorage is a better solution. .NET Framework 2.0 introduces a new Application scope that will move with your application updates (see this blog http://blogs.msdn.com/shawnfa/archive/2006/01/18/514407.aspx).
You can find more information about IsolatedStorage:
We're considering adding IsolatedStorage support in the My namespace for Visual Basic in the next version. Do you think this will be helpful for discovering this feature
Best regards,
dleinbach
The getcurrentdirectory would be in System.IO.Directory.GetCurrentDirectory(). You'll just have to parse the result coz it returns the location of your exe...
cheers,
Paul June A. Domag
DeepakRama
What are the relative advantages/disadvantages of using this vs Curdir() in VB
Jim Clark
I think that is correct, though. Publishing applications publishes it to the Users Application data location. Is this clickOnce publication I also think you can tell applications to not overwrite existing files, databases or example. I'm not certain, though. (Hmmm, something to investigate while drinking coffee).
Anthony Lombardo
da_sh
My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData
My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData
Best regards,
diegote