Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7054129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:35:20+00:00 2026-05-28T03:35:20+00:00

I need to zip a file in the folder c:\projects\test\test.log I need to zip

  • 0

I need to zip a file in the folder c:\projects\test\test.log
I need to zip the test.log to a zip folder.I am using Ionic.zip.dll.
when I zipped the folder, it is entirely adding the folder c:\projects\test\test.log.
I need to add the test.log to a zip folder

for eg.jan.zip. it should contain only one file. no folder structure needed.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:35:21+00:00Added an answer on May 28, 2026 at 3:35 am

    Instead of

    zipFile.AddFile(filename);
    

    you should use

    zipFile.AddFile(filename, "");
    

    That will insert the file at the root of the zip file, ie without a path.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a zip file compressed using Ionic zip . Before extracting I need
I am using SharpZipLib and I need to zip an existing folder where there
How can I download and unpack ZIP file to extension folder? Need to update
I need to zip a folder that containts an .xml file and a .fgdb
In a powerbuilder 12.5 I need to generate a zip file to send by
Here is my requirement. I need to unzip a zip file and store it
How to download and unpack .ZIP folder using Adobe Air? So I have http
I need to combine 3 files into 1 zip file and make it available
I have downloaded tomcat 6.0.Zip file and unzipped in Tomcat Folder. and i have
I need to compress a Visual Studio 2010 Solution into zipped folder, so I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.