R
Rob
I want to copy files from one folder to another... but only if it is a
".txt" file...
Below should work, but how would you filter on ".txt" files only ?
Thanks !
Dim fileEntries As String() = Directory.GetFiles(targetDirectory)
' Process the list of files found in the directory.
Dim fileName As String
For Each fileName In fileEntries
' Do the File.copy here
Next fileName
".txt" file...
Below should work, but how would you filter on ".txt" files only ?
Thanks !
Dim fileEntries As String() = Directory.GetFiles(targetDirectory)
' Process the list of files found in the directory.
Dim fileName As String
For Each fileName In fileEntries
' Do the File.copy here
Next fileName