Re: if statement only choice
Code:
Dim folders = New String() {"C:\test\folder1", _
"C:\test\folder2", _
"C:\test\folder3"}
For Each folder In folders
Dim directory = New IO.DirectoryInfo(folder)
Dim files = directory.GetFiles()
If files.Length > 0 Then
'//not empty, process files
End If
Next
Re: if statement only choice
you just need to check all 3 folders for files sequentially:
vb Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If IO.Directory.GetFiles("folder1").Count > 0 Then
End If
If IO.Directory.GetFiles("folder2").Count > 0 Then
End If
If IO.Directory.GetFiles("folder3").Count > 0 Then
End If
End Sub
Re: if statement only choice
WoW gurus
Thanks a bunch , I think I was going in the wrong direction,thanks again