[
  {
    "Id": "412739",
    "ThreadId": "203427",
    "Html": "<p>Hello,</p>\r\n<p>is there a way to add files to a Zip using a relative Path parameters (remove relative Path from File Path) ?</p>\r\n<p>Perhaps it's already available but I didn't find It.</p>\r\n<p>For Sample, I have an string[] table that contain the following Files:</p>\r\n<p>D:\\\\testing-directory\\\\G123456\\\\Intl\\\\Batch x update x\\\\IT\\\\Clean\\\\Log\\\\list1.rtf<br>D:\\\\testing-directory\\\\G123456\\\\Intl\\\\Batch x update x\\\\IT\\\\Clean\\\\Log\\\\DOC\\\\Test\\\\list2.rtf<br>D:\\\\testing-directory\\\\G123456\\\\Intl\\\\Batch x update x\\\\IT\\\\Clean\\\\Log\\\\Prep\\list3.rtf<br>D:\\\\testing-directory\\\\G123456\\\\Intl\\\\Batch x update x\\\\IT\\\\Clean\\\\Log\\\\LGP\\\\DOC\\\\Test\\\\list4.rtf<br>D:\\\\testing-directory\\\\G123456\\\\Intl\\\\Batch x update x\\\\IT\\\\Clean\\\\Log\\\\For sample\\\\list5.rtf</p>\r\n<p>and wanted to remove inside the Zip the Path : D:\\\\testing-directory\\\\G123456\\\\Intl\\\\Batch x update x\\\\IT\\\\Clean</p>\r\n<p>so to have a zip that look like that:</p>\r\n<p>Log\\\\list1.rtf<br> Log\\\\DOC\\\\Test\\\\list2.rtf<br> Log\\\\Prep\\list3.rtf<br> Log\\\\LGP\\\\DOC\\\\Test\\\\list4.rtf<br> Log\\\\For sample\\\\list5.rtf</p>\r\n<p>is there a way to do that from string table without creating a Foreach loop ?</p>\r\n<p>Thanks</p>",
    "PostedDate": "2010-03-01T08:08:15.323-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "412804",
    "ThreadId": "203427",
    "Html": "<p>if you want all the files in the directory hierarchy, you can call AddDirectory() and specify a directoryInArchive argument.&nbsp; You can also do this with AddSelectedFiles().&nbsp;</p>\r\n<p>You can call AddFiles(), and then use a for loop to trim the path for each added entry.</p>\r\n<p>Or, you can use a single loop, calling AddFile() within the loop, and specifying the directory for each file that way.</p>\r\n<p>You said something about not using a for loop; I don't know why you'd want to avoid that.</p>",
    "PostedDate": "2010-03-01T11:03:51.113-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "413077",
    "ThreadId": "203427",
    "Html": "<p>Thanks for your answer.</p>\r\n<p>I cannot use the AddDirectory() or AddSelectedFiles() method as I already have the set of files in a String table.</p>\r\n<p>In my point of view, when you have a set of Files in an array list or string Table it will be interesting that the AddFiles() method do the loop for us and in that way, remove the relative Path from Files Path.</p>\r\n<p>Like the sample provided above.</p>\r\n<p>tell me what do you think about this.</p>\r\n<p>regards</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-03-02T02:22:35.697-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "413138",
    "ThreadId": "203427",
    "Html": "<p>A&nbsp;simple for loop will accomplish it for you, correct?</p>\r\n<p>Thanks and good luck.</p>",
    "PostedDate": "2010-03-02T05:23:04.227-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "413142",
    "ThreadId": "203427",
    "Html": "<p>Yes it's what I did, but I thought that it could be integrated into a method</p>\r\n<p>Thanks for your help</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-03-02T05:28:30.167-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]