title: Moving Files with certain Extension using a textbox Directory vb.net
body: <p>So i am developing an Desktop cleaner which moves the items depending on the extension to an specific directory (the one that is being cleaned)</p>
  
  <p>The user defines the names of the folder which the items will be placed.</p>
  
  <p>But the code to move the files doesn't work properly.</p>
  
  <pre><code>Private Sub FlowButton1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FlowButton1.Click
      If CheckBox1.Checked Then
          Dim folderPathTextBox = options.TextBox1.Text
          Dim files() As String
          files = System.IO.Directory.GetFiles(options.FolderBrowserDialog1.SelectedPath, "*.txt")
  
          For Each file As String In files
              System.IO.File.Copy(file, options.TextBox1.Text &amp; options.TextBox8.Text &amp; options.TextBox2.Text &amp; System.IO.Path.GetFileName(file))
          Next
  
      Else
      End If
  </code></pre>
  
  <ul>
  <li><p><code>options.TextBox1.Text</code> = Directory selected using Folder dialog E.G: "C:\directory"</p></li>
  <li><p><code>options.TextBox8.Text</code> = slash to separate = "C:\directory\"</p></li>
  <li><p><code>options.TextBox2.Text</code> = Folder name determined by user E.G Images = "C:\directory\images"</p></li>
  </ul>
  
  <p>I also want the code to check if the folder exist if not create it .</p>
  
  <p>Thanks any help is appreciated </p>