Link to home
Start Free TrialLog in
Avatar of jspurr01
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
ASKER CERTIFIED SOLUTION
Avatar of Chris B
Chris B
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ramsys_al
ramsys_al

Try using a batch file.

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.
Avatar of jspurr01

ASKER

Awesome!  I love the simple solution!  Thanks.