I'm having a nightmare trying to copy files from multiple directories into a single directory.
Basically I received a data set with individual png files in individual folders. What I want is one folder with all the png files.
The reason I want to do this with code is that the data set has approx. 6000 folders, so it is not practical to do it manually. This can be done with WinApi as I have no need to make this cross platform. I just want to merge the bloody folders.
So far I have managed to get the paths to the png files all saved into a .txt which are saved on each line.
Example:
C:/Users/rudwi/Documents/Visual_Studio_2017/Projects/ExtractPhotos/ExtractPhotos/lfw-deepfunneled/Abbas_Kiarostami/*.png
Just wondering is there a way I can move from the path above to a different dir.
The solution given by ANON I believe was for linux but it is pretty much the same using xCopy from the command line. Instead, just add /s before the source path to include everything in the directory. Hope this helps someone.