In VBA behind a Command Button I want to copy a directory to a new directory. Ive tried FileCopy but I dont know how to use *.* in that command
I want to copy a directory & all its files to a new directory from within Access 2000
Collapse
X
-
no need to use *.*
you need to loop through all the files in the directory and copy them from source to destination. -
To add to debasisdas post, you will need to know these commands that you can look up in help...
Dir Function
Name Statement or FileCopy Statement along with the Kill Statement (if moving)
MkDir Statement
RmDir Statement (if moving)
Good LuckComment
-
Does any one have a simple vba procedure to make a list of the files in a particular directory so it can be used with FileCopy laterComment
Comment