Where is Resources folder, starting from App Path?

J Trahair

Well-known member
Joined
May 14, 2008
Messages
175
Location
Spain
Programming Experience
10+
Hi all. (VB2005)

How does the exe app know where to look for its Resources folder? In the development folders of my app it is in one place relative to the GetCurrentDirectory, but in a different set of run-time folders, the relative path is different.

Is there a My.Resources property (or some other property) which knows where this folder is? System.IO.Directory.GetCurrentDirectory tells the app where it is, is there a 'System.IO.Directory.GetResourcesDirectory' (except of course I know there isn't)?

I want the user to be able to copy image files from wherever into the Resources folder without the user having to look for it (the Resources folder) themselves. I can do the OpenFileDialog1 bit myself, I just need to know where to place the chosen file.

Thank you.
 
Application resources are compiled into the application executable, they can't set/changed at runtime.
 
Back
Top