So in my test I have two folders Gambas_Projects and NewFolder2 below code I am using an if statement for individual folders.
Is there a way to say if file = folder vs naming the folder?
Code: Select all
For Each file As String In Dir("/home/gbowlsby/Desktop/")
If File = "NewFolder2" Or If file = "Gambas_Projects" Then
TextArea1.Text &= "File: " & File & " copied" & Chr(10)
Else
TextArea1.Text &= "File: " & File & " copied" & Chr(10)
Copy "/home/gbowlsby/Desktop/" & File To "/home/gbowlsby/Desktop/NewFolder2/" & File
Endif
Next
End