string src = @"D:\xyz\abc\a\folder"; string dest = src.Substring(0, src.LastIndexOf('\\'));
string path = @"D:\abc\ToZipFolder"; string newpath = System.IO.Path.GetDirectoryName(path);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)