var filenameNoExt = System.IO.Path.GetFileNameWithoutExtension(fileNamePath);
var filename = System.IO.Path.GetFileName(fileNamePath);
var extension = System.IO.Path.GetExtension(fileNamePath);
var dirname = System.IO.Path.GetDirectoryName(fileNamePath);