954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

where to store files that are part of the project

I have some music files that are being played, in certain cases in my project. Where should I store those files? I created a folder "Musik" under my project and put it in there, the problem is, how do I get to these files, I don't know the path when it's published.

plusplus
Posting Whiz in Training
207 posts since Jul 2007
Reputation Points: 10
Solved Threads: 16
 
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
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You