Move folders based on txt file

From file rename script may be worth looking at, in case it does what you're thinking of already.

To do what's in the root post here will need a custom script, though. I don't think any existing script can do that yet.