[MonoDevelop] Best way to find the current directory

Steve Ricketts velocedge at hotmail.com
Wed Apr 7 09:34:42 EDT 2010


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.


More information about the Monodevelop-list mailing list