Solved

Move files from multiple subdirectories to a single directory

Posted on 2009-07-10
3
437 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
ID: 24829065
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
ID: 24829514
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
ID: 31602363
Awesome!  I love the simple solution!  Thanks.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows profile has reset - I have lost desktop icons and mapped network drives 12 689
mindspart aabarsvc.exe 3 128
Windows 7 Not Boot 3 232
Profile service not available 6 106
So who is this article for? If you are like most of the computer users out there, you probably only realize the meaning of 'System maintenance' after something goes wrong. This article is for you if you care about keeping your system working opti…
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…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 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

20 Experts available now in Live!

Get 1:1 Help Now