Firstly, I'm aware there are tons of similar questions, and I know because I must have tried adapting at least 5 of them, but I'm still here asking because my crappy grasp of CMD (which I actually thought I was getting good at up until this point) is frustrating me with generic, unhelpful errors, and I can't understand what part of the syntax is wrong. This is likely due to the fact that other questions deal with the folder/filename structures of their respective OPs, and when I try to adapt the code to my own folder/file structure it refuses to work. Therefore, I'm here asking for a CMD
for loop solution that'll actually work for my own file and folder structure.
I have a parent folder which contains many other folders, in which there are files:
Parent Folder Subfolder File1 File2 Subfolder File1 File2 Subfolder File1 File2
...and so on.
I'm wanting to use a CMD
for loop in combination with the
move command to extract all the files in the subfolders to the parent folder, leaving each subfolder empty.
When giving the CMD
for loop please break down what each part of the command is doing, as this'll help make sure I understand the code and hopefully minimise the trouble I have getting it to work for myself.