943,901 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 626
  • VB.NET RSS
Jul 6th, 2009
0

where to store files that are part of the project

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 16
Posting Whiz in Training
plusplus is offline Offline
207 posts
since Jul 2007
Jul 7th, 2009
0

Re: where to store files that are part of the project

Quote ...
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
Teme64 is offline Offline
1,024 posts
since Aug 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: DataGridView
Next Thread in VB.NET Forum Timeline: Text Analysis





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC