How about just:
zip.AddFile(file,"");
or
zip.AddFile(file,@"\");
More Related Contents:
- Zip folder in C#
- How can I list the contents of a .zip folder in c#?
- Creating Zip file from stream and downloading it
- How can i get ALL File Extentions in C#? [closed]
- How to remove illegal characters from path and filenames?
- Checking for directory and file write permissions in .NET
- Copy the entire contents of a directory in C#
- How do I ZIP a file in C#, using no 3rd-party APIs?
- Getting the absolute path of the executable, using C#?
- How to read data from a zip file without having to unzip the entire file
- How do I delete a directory with read-only files in C#?
- Microsoft Azure: How to create sub directory in a blob container
- Getting Downloads Folder in C#? [duplicate]
- recommend a library/API to unzip file in C# [closed]
- Retrieving files from directory that contains large amount of files
- Progress Bar not available for zipfile? How to give feedback when program seems to hang
- How do I add files to an existing zip archive
- How do I get the directory from a file’s full path?
- List all files and directories in a directory + subdirectories
- How to zip multiple files using only .net api in c#
- Get folder name from full file path
- Remove readonly attribute from directory
- How do I detect when a directory or file changes without constant scanning
- Properties.Settings.Default.Save(); -> Where is that file
- Delete files older than 3 months old in a directory using .NET
- .Net’s Directory Services throws a strange exception
- C#.net identify zip file
- C# Searching for files and folders except in certain folders
- Best way to iterate folders and subfolders
- C# – Set Directory Permissions for All Users in Windows 7