A Al Evans Member Licensed User Longtime User Feb 4, 2014 #1 Hi, How would I use File.Copy with wildcards, such as "*.*" I want to copy the contents of one folder into another, overwriting if the file already exists, but it doesn't appear that File.Copy allows you to use something like "*.*" for the filename(s) to copy? Thanks Alan
Hi, How would I use File.Copy with wildcards, such as "*.*" I want to copy the contents of one folder into another, overwriting if the file already exists, but it doesn't appear that File.Copy allows you to use something like "*.*" for the filename(s) to copy? Thanks Alan
Erel B4X founder Staff member Licensed User Longtime User Feb 4, 2014 #2 Code: Copy For Each f As String In File.ListFiles("folder") If File.IsDirectory("folder", f) = False Then File.Copy("folder", f, ...) End If Loop Upvote 0
Code: Copy For Each f As String In File.ListFiles("folder") If File.IsDirectory("folder", f) = False Then File.Copy("folder", f, ...) End If Loop
A Al Evans Member Licensed User Longtime User Feb 4, 2014 #3 Erel said: Code: Copy For Each f As String In File.ListFiles("folder") If File.IsDirectory("folder", f) = False Then File.Copy("folder", f, ...) End If Loop Click to expand... Thanks Erel ! Upvote 0
Erel said: Code: Copy For Each f As String In File.ListFiles("folder") If File.IsDirectory("folder", f) = False Then File.Copy("folder", f, ...) End If Loop Click to expand... Thanks Erel !