CmdDemo.ffmpeg.GetFileName C# (CSharp) Méthode

GetFileName() private static méthode

從文件路徑中取得文件名
private static GetFileName ( string fullName ) : string
fullName string
Résultat string
        private static string GetFileName(string fullName)
        {
            fullName = fullName.Replace(@"/", @"\");
            return fullName.Substring(fullName.LastIndexOf(@"\"));
        }