jsutterf
New member
I am almost finished a small project and all that is left is figuring out how to move/copy files of certain extensions (.mov, .jpeg, etc) from Directory1 to Directory2... I have both directories, and the file extensions prepped already, but just need to know how I go about grabbing the appropriate files and moving/copying them to the new directory.
What Im looking for is how to iterate through all files in a directory, store them in a collection, and then copy/move them to the destination folder. Im looking at creating a FileSystemObject, a File object, and a Collection object, then creating a loop where I can iterate through all files in the folder, select the ones I want, and then store them in my collection where Ill be able to copy/move them...
Am I on the right track?? Any help/code snippets will be greatly appreciated...
Thanks!
What Im looking for is how to iterate through all files in a directory, store them in a collection, and then copy/move them to the destination folder. Im looking at creating a FileSystemObject, a File object, and a Collection object, then creating a loop where I can iterate through all files in the folder, select the ones I want, and then store them in my collection where Ill be able to copy/move them...
Am I on the right track?? Any help/code snippets will be greatly appreciated...
Thanks!