troubleshooting Question

Help with a batch file please - Defining multiple source destinations & archiving

Avatar of Matthew Emery
Matthew EmeryFlag for United Kingdom of Great Britain and Northern Ireland asked on
Windows Batch
5 Comments2 Solutions141 ViewsLast Modified:
Hi All

I am creating a batch file that copies the contents of 3 folders to a single folder.

I have not got very far at the moment as:

1) I want to copy from 3 source locations to the same destination folder and not sure how to separate these into the code rather than using a repetition of code.  

2) After the files have successfully copied to the destination folder I would like to move them from the source folders completely and place them into a folder called ARCHIVE

This is where I am currently at:

copy /-y "C:\PO" "c:\ABSFiles"
Patrick Bogers
Datacenter platform engineer Lindows

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros