I don't know the path when it's published
Application.StartupPath returns the path where your application is executed. That path is usually under "Program Files" folder. If you need Vista/Win 7 compatible application, you shouldn't write
anything to that folder. Instead, use either Application.CommonAppDataPath (= All Users) or Application.LocalUserAppDataPath (= currently logged in user).
HTH
Reputation Points: 218
Solved Threads: 201
Veteran Poster
Offline 1,024 posts
since Aug 2008