get file path from project folder c# code example Example: c# get folder path from file path Path.GetDirectoryName(filename);