Get full path of executable (current location)
The following source code determines current location of an executable. So inside a programm this code can be used to get the path in which the programm will be executed.
System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();
string baseDir = System.IO.Path.GetDirectoryName(a.Location);
Comments
Du mußt Dich einloggen um diesen Weblog kommentieren zu können!
There were no comments found for this weblog.