rockfish12
Technical User
I have a parent directory that has a bunch of subdirectories, each of which contains two or three files. What I want to do is programmatically move/copy those files nested in each subdirectory out to a single folder somewhere else, so that I can run a batch operation on the files using another software package.
For example, I have parent folder c:\temp, which has the subdirectories sub1, sub2, and sub3. Each of those subfolders has two files in it, which I want to move to c:\files. So ideally, the procedure would move a total of six files into c:\files directory, with no nested folders or directories.
Any tips/code on how to do this is greatly appreciated.
For example, I have parent folder c:\temp, which has the subdirectories sub1, sub2, and sub3. Each of those subfolders has two files in it, which I want to move to c:\files. So ideally, the procedure would move a total of six files into c:\files directory, with no nested folders or directories.
Any tips/code on how to do this is greatly appreciated.