Solved

Move files from multiple subdirectories to a single directory

Posted on 2009-07-10
3
436 Views
Last Modified: 2012-05-07
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
0
Comment
Question by:jspurr01
3 Comments
 
LVL 28

Accepted Solution

by:
burrcm earned 500 total points
Comment Utility
Do a search for all the files first - EM-LIST-*.csv, then move from there to the new folder.

Chris B
0
 

Expert Comment

by:ramsys_al
Comment Utility
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.
0
 

Author Closing Comment

by:jspurr01
Comment Utility
Awesome!  I love the simple solution!  Thanks.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

The main issue when installing Vista and XP in dual boot is when you have to reinstall any of the two when something fails, let's say a hard disk failure, a lost partition, virus, etc. What commonly happens is that you lose all your hard work config…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now