AppDomain.BaseDirectory
Gets the base directory that the assembly resolver uses to probe for
assemblies and it is similar to AppDomainSetup.ApplicationBase.
Environment.CurrentDirectory
Gets or sets the fully qualified path of the current working directory.
Directory.GetCurrentDirectory()
Gets the current working directory of the application. Obviusly it is an
read only method.
Assembly.GetExecutingAssembly().Location
Gets the path or UNC location of the loaded file that contains the manifest.
"Kakkanattu" <ro**********@gmail.comwrote in message
news:1f**********************************@c19g2000 prf.googlegroups.com...
Hi,
In desktop application, we use different ways to get the current
execution directory.
I. AppDomain.CurrentDomain.BaseDirectory
II. Environment.CurrentDirectory
III. Directory.GetCurrentDirectory()
IV. Assembly.GetExecutingAssembly().Location
Can u please help me to know the difference of all these? Also is
there any other way to get the current directory other than the above?
Thanks in advance
Robin Mathew