Path.GetFilename(...)
or if u wanna do it string search way:
and of course check for errors in the input string.Code:string[] split = path.Split('\\'); string filename = split[split.Length - 1];
Path.GetFilename(...)
or if u wanna do it string search way:
and of course check for errors in the input string.Code:string[] split = path.Split('\\'); string filename = split[split.Length - 1];
thanks Bling - sorted