- Feb
- 10
- 0
I have an annoying problem trying to move all nested folders up one level.
This is the basic folder structure:
20200101\Yada\Folder01
Folder02
Folder03
20200102\Yada\Folder01
Stuff01
ThisThing
20200103\Yada\Folder01
Folder03
ThatThing
TheOtherThing
Etc. The problem is "Yada" (actually a code like: 4E0DA4CE99D71EB5F8B7FF2DCD2AC6AF). That's a folder name placed there by a misconfigured file sync program. The various folders, Folder01, Folder02, Folder03, etc, should all be under their respective dated folders. I just need to get rid of "Yada". There are about six years worth of these folders so I obviously don't want to do it manually. There are only two variations of "Yada", as far as I can see, so a command file to do this would only need to be run twice, and I could then just recursively delete all the Yadas (making sure they are empty first).
I've been trying various forms of a FOR DO loop using xcopy and I can't get anything to work.
This is the basic folder structure:
20200101\Yada\Folder01
Folder02
Folder03
20200102\Yada\Folder01
Stuff01
ThisThing
20200103\Yada\Folder01
Folder03
ThatThing
TheOtherThing
Etc. The problem is "Yada" (actually a code like: 4E0DA4CE99D71EB5F8B7FF2DCD2AC6AF). That's a folder name placed there by a misconfigured file sync program. The various folders, Folder01, Folder02, Folder03, etc, should all be under their respective dated folders. I just need to get rid of "Yada". There are about six years worth of these folders so I obviously don't want to do it manually. There are only two variations of "Yada", as far as I can see, so a command file to do this would only need to be run twice, and I could then just recursively delete all the Yadas (making sure they are empty first).
I've been trying various forms of a FOR DO loop using xcopy and I can't get anything to work.