vendredi 17 avril 2015

How to move folders with names listed in a text file

I face the following issue in Windows. I have thousands of subfolders in a main folder (let's call it data\ ) and I want to move a big subset of them in another folder (let's call it data2\ ). In a .txt file I have a list of the exact names of the folders that I want to move. Is there a way to do that with the cmd?


I make a simple example to make the issue more clear. In the folder data\ I have the subfolders A, B, C, D and E. In a text file I have the list of names:


A C E (one name in each line)


I want to move the subfolders A, C and E to the folder data2.


Thanks a lot :)


Aucun commentaire:

Enregistrer un commentaire