c# get current directory
string currentDir = System.IO.Directory.GetCurrentDirectory();
//returns the current directory of the application when executing
c# get current directory
string currentDir = System.IO.Directory.GetCurrentDirectory();
//returns the current directory of the application when executing
get current directory c#
System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
c# get application root path directory
public static string GetApplicationRoot()
{
var exePath = new Uri(System.Reflection.
Assembly.GetExecutingAssembly().CodeBase).LocalPath;
return new FileInfo(exePath).DirectoryName;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us