Accessing %appdata% with VB.NET

后端 未结 3 2111
没有蜡笔的小新
没有蜡笔的小新 2021-02-07 05:49

How can you access files in %appdata% through VB.NET?

For example, C:\\Users\\Kuzon\\AppData\\Roaming\\program. How would I access that file, but on another

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-07 06:35

    Function GetAppDataPath() As String
       Return Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
    End Function
    

提交回复
热议问题