Path.GetDirectoryName(filename);
string fileName = @"test.txt"; string currentDirectory = Directory.GetCurrentDirectory(); string[] fullFilePath = Directory.GetFiles(currentDirectory, filename, SearchOption.AllDirectories);