Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Compression.

Compression.

Scheduled Pinned Locked Moved C#
csshelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aerosmith2k1
    wrote on last edited by
    #1

    Here goes my question. I would like to know how to select files from a window dialog, display the files selected in a grid. From there have an option to either add more files (eg notepad.exe) so you can add or remove them. From there when you are done selecting files Have another button that will compress all the files you selected and compress them using rar and the filename you designate. Any ideas and help would be greatly appreciated. Many thanks -- modified at 16:51 Sunday 8th January, 2006

    M 1 Reply Last reply
    0
    • A aerosmith2k1

      Here goes my question. I would like to know how to select files from a window dialog, display the files selected in a grid. From there have an option to either add more files (eg notepad.exe) so you can add or remove them. From there when you are done selecting files Have another button that will compress all the files you selected and compress them using rar and the filename you designate. Any ideas and help would be greatly appreciated. Many thanks -- modified at 16:51 Sunday 8th January, 2006

      M Offline
      M Offline
      mav northwind
      wrote on last edited by
      #2

      The first part is not very tricky - just use an OpenFileDialog to browse for the files. When OpenFileDialog.ShowDialog() returns DialogResult.OK, you can add the selected filename or filenames to your list (for example, an ArrayList). Creating a rar file from the files selected cannot be achieved with the base class library classes. I don't know a library that creates rar, but you should definitely have a look at SharpZipLib (google for it), it can create zip, bzip, gzip and some other formats. Regards, mav

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups