Working Directory
-
Hi, How can I get current application working directory? Thanks
-
Hi, How can I get current application working directory? Thanks
See http://www.codeproject.com/script/Forums/View.aspx?fid=13695&msg=2227520[^]
GetModuleFileName()
will give you the full path of the calling applicaton. cheers, AR -
Hi, How can I get current application working directory? Thanks
hi, try following
Path.GetDirectoryName(Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase.ToString)
Rupesh Kumar Swami Software Developer, Integrated Solution, Bikaner (India) My Company Award: Best VB.NET article of June 2008: Create Column Charts Using OWC11
-
Hi, How can I get current application working directory? Thanks
Hi divyesh1432, try this code
System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase.ToString()); MessageBox.Show(dir.Parent.FullName.ToString());
This code is useful for .Net CF. hope that this may be helpPavan Pareta