title: How to add a folder by name vb.net
body: <pre><code>Private Sub Button2_Click(sender As System.Object, e As System.EventArgs)  Handles Button2.Click
  
      Dim folderName As String = " WAP02"
  
      If Not Directory.Exists(" C:\folder test" &amp; "\" &amp; folderName) Then
  
          MessageBox.Show("Directory Does not Exist. Program will create a Directory")
          Directory.CreateDirectory(" C:\folder test" &amp; "\" &amp; folderName)
          MessageBox.Show("Directory created successfully")
  
      Else
          MessageBox.Show("Directory already existed")
      End If
  
  End Sub
  </code></pre>
  
  <p>I create a button to add folder into my folder(folder test). If i have already have WAP01 in my folder(folder test) , how should i write a routine to get WAP02 when i click the button, and if i click button again i will get WAP03 and so on. </p>