Hi,
I want extract .zip file from filder and rename inside zip file.
i am using below code for extract and its working also but how can i rename inside file.
- if (ofd.ShowDialog() == DialogResult.OK)
- {
- Path_List.Items.Clear();
- foreach (String file in ofd.FileNames)
- {
- if ((mystream = ofd.OpenFile()) != null)
- {
- using (mystream)
- {
-
- Path_List.Items.Add(file);
- txt_File_Count.Text = Path_List.Items.Count.ToString();
- ZipFile zipFile = new ZipFile(file);
- string fullPath = ofd.FileName;
- string filename = ofd.SafeFileName;
- string path = fullPath.Replace(filename, "");
- zipFile.ExtractAll(path, ExtractExistingFileAction.DoNotOverwrite);
- zipFile.ExtractAll(Application.StartupPath);
- }
- }
- }
- Path_List.Items.Clear();
- }