I have got table named FILELISTS
Table Name - Filelists
Field - FileNames
Data Value
- File1.txt
- File2.csv
- File3*.csv
I’m struggling to write the code, as per above if it has a file name (like file1.txt and file2.txt) it needs to copy from source to destination. If file name is pattern (like File3*.csv) then copy all files that matches this pattern from source to destination.
I’m enumerating through above row in Vb.net using data reader.
You can use
Directory.EnumerateFilesandFile.Copy, for example:Edit: Sorry, here the VB.NET version: