I have this line and how can I get only the last subdirectory name and the file name ?
label13.Text = Path.GetFileName(file1);
Im getting only the file name: test.avi
If im not using the Path.GetFileName only file1 I will get something like:
http://users/test/test/program/test/test.avi
What I want to get is the last subdirectory name wich is: test and the file name: test.avi
So in label13 I will see: test/test.avi
How can I do it ?
Just using
Path: