title: VB.NET Copy multiple files on clipboard and paste with their folders
body: <p>I have a main folder &quot;A&quot; of program X, with files and sub folders &quot;B&quot; , &quot;C&quot; , &quot;D&quot; with files in them and other subfolders etc .
  I have created a procedure that with some logic it populates some of those files with their full paths and a listview.</p>
  <p>For example c:\A\B\File.txt etc</p>
  <p>When the user checks files in the listview i copy the files to the clipboard with the following Sub</p>
  <pre><code> Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button4.Click
          Dim DataObject As New DataObject
          Dim tempFileArray As New ArrayList
          For Each chkitem In ListView1.CheckedItems
              tempFileArray.Add(chkitem.text)
          Next
  
          DataObject.SetData(DataFormats.FileDrop, False, DirectCast(tempFileArray.ToArray(GetType(String)), String()))
          Clipboard.SetDataObject(DataObject)
      End Sub
  </code></pre>
  <p>At this time when the users does paste in a folder for example c:\OtherFolder , all the selected files are pasted inside c:\OtherFolder where the user pasted.</p>
  <p>Is there any way when the user pastes in a folder the files, to be pasted with copies of their original paths ? I mean that if a file was copied from c:\A\B\File.txt then during the paste in C:\OtherFolder , a folder A and B to be created indide and the file.txt to be to be pasted inside folder C:\OtherFolder\A\B ?</p>