I know about for loops such as
for /r %f in (*) do @move %f .
for /r %f in (.) do @move %f .
but I can't seem to find any code that fits my scenario. Say I have many directories that look like this:
Folder 1 Folder 2 File 1 File 2 File 3 Folder 3 File 4 Folder 4 Folder 5 File 5 File 6 File 7 Folder 6 File 8
and I want to get File 4 into Folder 2, File 8 into Folder 5, and so on, how would I go about this? For this scenario, I have quite a few directories that look like this, so manually going into every single one would not work. What's the simplest solution, preferably using Batch? The end result would hopefully look like this:
Folder 1 Folder 2 File 1 File 2 File 3 File 4 Folder 4 Folder 5 File 5 File 6 File 7 File 8