jspurr01
asked on
Move files from multiple subdirectories to a single directory
Greetings,
I have several hundred folders, named with a naming convention. I would like to move all the files in those folders into a single folder.
Given:
1) All folders are named "EM-LIST-########.csv
2) Target folder is named VSCs
I tried: "move EM-LIST-*.csv\* VSCs"
It seems like this should work. If I do only one directory's files (i.e. substitute actual string value for the first * ), it works.
Any ideas?
Thanks in advance.
I tried: move
I have several hundred folders, named with a naming convention. I would like to move all the files in those folders into a single folder.
Given:
1) All folders are named "EM-LIST-########.csv
2) Target folder is named VSCs
I tried: "move EM-LIST-*.csv\* VSCs"
It seems like this should work. If I do only one directory's files (i.e. substitute actual string value for the first * ), it works.
Any ideas?
Thanks in advance.
I tried: move
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Awesome! I love the simple solution! Thanks.
Make a batch file using MS-DOS commands.
Use notepad to make the file, but save it as .bat file, not as .txt
For example:
cls
cd EM-LIST-######01.csv
move *.* VSCs
cd EM-LIST-######02.csv
Al R.