[MonoDevelop] Best way to find the current directory

Alan McGovern alan.mcgovern at gmail.com
Wed Apr 7 09:55:12 EDT 2010


Environment.CurrentDirectory maybe ;)

Alan.

On Wed, Apr 7, 2010 at 2:34 PM, Steve Ricketts <velocedge at hotmail.com> wrote:
>
> I'm using the following to find the current directory and any command line
> arguments.
>
> foreach (string arg in Environment.GetCommandLineArgs())
>
>            {
>
>                CommandLine = CommandLine + arg + " ";
>
>            }
>
> Is there a better way to get the current (executable) directory within C#?
>
> Thanks,
>
> Steve
> --
> View this message in context: http://n4.nabble.com/Best-way-to-find-the-current-directory-tp1754322p1754322.html
> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>


More information about the Monodevelop-list mailing list