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 writeanything to that folder. Instead, use either Application.CommonAppDataPath (= All Users) or Application.LocalUserAppDataPath (= currently logged in user).
HTH
Teme64
Veteran Poster
1,031 posts since Aug 2008
Reputation Points: 218
Solved Threads: 203