I use DotNetZip to zip and unzip files in my application. It works with almost no problems. But if I do this:
Guess what? When you unzip the file, you have to browse USERS, ADMIN, DOCUMENTS, ANOTHERDIRECTORY, ANOTHERDIRECTORY1, and then you will find documenttozip.txt.
1. This doesn't happen on programs like WinZip and WinRAR
2. It's kind of weird that someone unzipping a zip file would see my user name and all the folders the file was in.
The only way I see of getting past this is moving each directory to the root drive (in this case C:/) and adding it there and moving it back when done. Only problem is, you have to run the program as administrator. I'm not going to do that every time! Thanks in advance!
Code:
Dim ZIPFILE As New ZipFile
ZIPFILE.Add("C:/Users/Admin/Documents/AnotherDirectory/AnotherDirectory1/documenttozip.txt
ZIPFILE.Save("C:/Users/Admin/Documents")
1. This doesn't happen on programs like WinZip and WinRAR
2. It's kind of weird that someone unzipping a zip file would see my user name and all the folders the file was in.
The only way I see of getting past this is moving each directory to the root drive (in this case C:/) and adding it there and moving it back when done. Only problem is, you have to run the program as administrator. I'm not going to do that every time! Thanks in advance!