Using ZipFile
Hi Everyone, I have started programming in C# for couple of days, I was trying to use Zipfile class, but I faced many issues. So I felt the obligation to share them with you, and how to solve it. 1. The reference wasn't added by default, so you need to add the references System.IO.Compression and System.IO.Compression.FileSystem. 2. Using the class ZipFele I had a problem with the access. I always received the access denied error because the clas Zipfile used the whole path including the name and the extension. ZipFile.ExtractToDirectory(compressfiles[i], extractPath); Below the code and a video with the explanation: Reference: https://msdn.microsoft.com/en-us/library/system.io.compression.zipfile_methods(v=vs.110).aspx Programs: private void button1_Click(object sender, EventArgs e) { MessageBox.Show("Hello"); string startPath = @"C:\Users\\D...