On Sun, 28 Jan 2007 04:11:01 -0800, Patrick F
<(E-Mail Removed)> wrote:
>How do you get the path to the folder the program is in.
>
>Lets say i have something like this:
>
>c:\programs\myprogram\another folder\program.exe
>
>now in my program i want to get the path,
>c:\programs\myprogram\another folder\
>
>I tried something like:
>System.IO.Path.GetFullPath("\\")
>
>but that just returns c:\
If you are trying to get the path of your executable application you should use
:
string path = Application.ExecutablePath;
Good luck with your project,
Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com