CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2012
    Posts
    18

    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

  2. #2
    Join Date
    Oct 2012
    Posts
    18

    Re: About Paths and path reference

    Ah. I want to add this path in the Settings file

  3. #3
    Join Date
    Oct 2012
    Posts
    18

    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
  •  





Click Here to Expand Forum to Full Width

Featured