J
Jeff
....hope this question is on the right ng.
The code below works to copy all files and folders from D:\Template to a new
location that is specified by the user.
Is there any easy way to modify this code to copy everything except for one
or two child folders inside of D:\Template ?
....or would I have to copy everything and then delete the folders I don't
want copied over? (in other words, I want to copy everything but
D:\template\folder1 and D:\template\folder2 ) ...and I won't know all
file and folder name within D:\Template in advance, so I can't simply list
each specifically, but I will know the names of the folders that I don't
want copied.
thanks
Jeff
Dim fso
Dim sourcefolder As String, destinationfolder As String
sourcefolder = "D:\Template"
destinationfolder = "D:\" & LbDbNames.SelectedItem
fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFolder(sourcefolder, destinationfolder)
The code below works to copy all files and folders from D:\Template to a new
location that is specified by the user.
Is there any easy way to modify this code to copy everything except for one
or two child folders inside of D:\Template ?
....or would I have to copy everything and then delete the folders I don't
want copied over? (in other words, I want to copy everything but
D:\template\folder1 and D:\template\folder2 ) ...and I won't know all
file and folder name within D:\Template in advance, so I can't simply list
each specifically, but I will know the names of the folders that I don't
want copied.
thanks
Jeff
Dim fso
Dim sourcefolder As String, destinationfolder As String
sourcefolder = "D:\Template"
destinationfolder = "D:\" & LbDbNames.SelectedItem
fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFolder(sourcefolder, destinationfolder)