Solved

Move files from multiple subdirectories to a single directory

Posted on 2009-07-10
3
438 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

There are many reasons a PC runs slower than when it was new, ranging from malicious software intended to mess things up to simple general Windows use.  Your PC performance may slowly degrade over time without you noticing but when you buy a PC from…
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 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

18 Experts available now in Live!

Get 1:1 Help Now