How to get full file path from file name?

The Solution to How to get full file path from file name? is


Try

string fileName = "test.txt";
FileInfo f = new FileInfo(fileName);
string fullname = f.FullName;

~ Answered on 2012-11-01 11:19:31


Most Viewed Questions: