+ 1
You can try and use this: string name = Path.GetFileName(filename);
4th Feb 2020, 5:14 PM
Nill
Nill - avatar
+ 1
oh, right.. so you know the folder name?
4th Feb 2020, 5:16 PM
Nill
Nill - avatar
+ 1
split them by the separator \\ or \ or / then get the last index. filename = wholepath.split(Path.DirectorySeparatorChar.ToString()).Last()
4th Feb 2020, 5:18 PM
Taste
Taste - avatar
0
thank you Taste! @Tim
4th Feb 2020, 5:18 PM
Nill
Nill - avatar