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 Comments1 Solution141 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"
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
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 1 Answer 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