string fullPath = @"d:\test\default.avi";
string extension = Path.GetExtension (fullPath);//extension ".aspx"
string fileNameWithoutExtension = Path.GetFileNameWithoutExtension (fullPath );// The file name without extension "default"
string dirPath = Path.GetDirectoryName(filePath) //return the directory where the file is located "d:\test"
string fullPath1 = Path. Combine (@"d:\test", " default.avi") //return "d:\test\default.avi"
string fullPath2 = Path.GetFullPath("config.ini");//return the absolute path of the specified path string
string extension = Path.GetExtension (fullPath);//extension ".aspx"
string fileNameWithoutExtension = Path.GetFileNameWithoutExtension (fullPath );// The file name without extension "default"
string dirPath = Path.GetDirectoryName(filePath) //return the directory where the file is located "d:\test"
string fullPath1 = Path. Combine (@"d:\test", " default.avi") //return "d:\test\default.avi"
string fullPath2 = Path.GetFullPath("config.ini");//return the absolute path of the specified path string