string path = @"C:\Program Files\TEST\Project Name\Tester.exe";
string strt = path.Remove(path.Length-10);
string path = @"C:\Program Files\TEST\Project Name\Tester.exe"; FileInfo fi1 = new FileInfo(path); if (!fi1 .Exists) { return; } //This line will return the file path string dirPath = fi1.DirectoryName;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)