Compression.
-
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
-
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
The first part is not very tricky - just use an
OpenFileDialog
to browse for the files. WhenOpenFileDialog.ShowDialog()
returnsDialogResult.OK
, you can add the selected filename or filenames to your list (for example, anArrayList
). 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