Loading

How to Store Data Under %appdata% Using Visual Basic .NET

Submitted by: 


Sometimes we need to store some data or files under %appdata%. If you are using Windows 7 you can find this folder under C:\Users\Username\AppData.

AppData is a folder used to store information like cookies, Libraries, program settings, temporary files, templates, etc.

By using this folder you are certain that your settings are being protected by Windows.

To access this folder, all you have to do is use the following code:

  1. Dim filePath As String
  2.  
  3. filePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\yourApp"



Comments

hi every vb.net master or professional my name is vincent i'm vb.net beginner ,please give some sample or solution for thank Q

Add new comment