I'm using a folder browser to get a path to a directory that I will be compressing.
For eg C:\\Program File\Visual Studio.
As well as this I want to read the last directory of the path into a string...so in this case Visual Studio as this will be the name of the compressed file.
The code I have to get the path is:
//set source path of snapshot
snapshotSource = _snapshotFolderBrowser.SelectedPath;
//now I need the code for
string compressedFileName = ???
Can someone give me some pointers to go about this please....