-
November 9th, 2012, 11:02 PM
#1
About Paths and path reference
How is it possible to declare a path to a source within the app folder?
For example if a add a assembly that is somewhere in the project dir, though that the path declared is the full path, if I move the dir to another location the path changes with it.
I now want to add a path to a local db file that exists in the project dir that I will deliver(execs&assemblies only).
The Environment.CurrentFolder returns the path to the bin dir.
The folder that contains the file is a level above
thanks
-
November 9th, 2012, 11:08 PM
#2
Re: About Paths and path reference
Ah. I want to add this path in the Settings file
-
November 16th, 2012, 08:17 PM
#3
Re: About Paths and path reference
Anyway. Used to be the "./". In .net I used the Environment.Currentpath, but I noticed that this path changed whenever you call a FileDialog. I just save Environment.CurrentPath +"directory" everytime the app starts (if setting's entry empty).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|