Guest User

Untitled

a guest
Jan 17th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Dim Directory = Application.StartupPath + "orders"
  2. Dim Files() As System.IO.FileInfo
  3. Dim DirInfo As New System.IO.DirectoryInfo(Directory)
  4. Dim StrClean As String
  5.  
  6. Sub ShowFiles()
  7.  
  8. Files = DirInfo.GetFiles("*.xml", IO.SearchOption.TopDirectoryOnly)
  9. For Each File In Files
  10. lstFiles.Items.Add(File)
  11. Next
  12. End Sub
Add Comment
Please, Sign In to add comment