how to write to file in program folder in VB.net?
ex
Program Files\n\n.ini.
how to write to n.ini in program folder.
xn hunk -3 Light Poster
Recommended Answers
Jump to PostUse one of the following directories to store your data:
Dim userProfileDir As String = Environment.GetEnvironmentVariable("USERPROFILE") Dim allUsersProfileDir As String = Environment.GetEnvironmentVariable("ALLUSERSPROFILE") Dim appDataDir As String = Environment.GetEnvironmentVariable("APPDATA")
If you don't need to run your program on XP, you can use:
Dim appDataDir …
Jump to PostSee the post from deceptikon for:
System.Environment.SpecialFolder Enumeration
UserProfile:
"...The user's profile folder. Applications should not create files or folders at this level; they should put their data under the locations referred to …
All 5 Replies
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
cgeier 187 Junior Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
xn hunk -3 Light Poster
cgeier 187 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.