If you set a reference to Microsoft Scripting Runtime, you can create a FileSystemOject that exposes drives, folders and files collections you can spin.
Sorry, all I have time to do is point you. If you need more help post again and we'll try to help.
This is equivalent to the start menu/run command box. If you need more help on xcopy start a command prompt window and type xcopy /?
If you don't want to do this then try a loop on the DIR function (see the dir function example in access vba help) in foldera and use filecopy for anything that ends in .txt
hth
Peter
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.