Automatically move files from Windows share

Hello Experts

Can someone please let me know if its possible to write a batch file (or some script) that will automatically move files from a file share into a folder on my C:\.

For example in the image below you can see a file share called \\wdmycloud and the folder in the share called Riverbed. I would like move files in the Riverbed folder to a folder on my C:\
Any help will be greatly appreciated.


Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewIT / Software Engineering ConsultantCommented:
Do you want to just create an exact copy of that folder in say C:\Riverbed?  Or is there anything fancy going on like merging, overwriting, etc?

Do you want to just do this one time, or refresh periodically?

Certainly ROBOCOPY can do the basic copying job quite nicely in a single command line, take a look and see if it might meet your needs.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Member_2_7966113Author Commented:
Hi Bill

I would like the contents of the items in the Riverbed folder to be copied to  folder of my choosing.

I would like the copied contents to be over written with new content.

I would like the Riverbed folder to be monitored for new content and when new content is discovered the content to be copied over to folder of my choosing

I hope that explains my requirement.

Aaron TomoskyDirector of Solutions ConsultingCommented:
syncback has a periodic running mirror, might be the easiest way to solve this

Robocopy scripts will do it, but I get the feeling you want something a bit more automated with a nice gui.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

NVITEnd-user supportCommented:
If you are interested in a GUI type tool, a free, popular one worth looking at is FreeFileSync, which helps you synchronize files and folders... It has  Versioning and Batch jobs... It's easy to use... It is designed to save your time setting up and running data backups while having nice visual feedback along the way... its main purpose is to speed up backup operations by examining the differences between source and target folders... without using any cloud services...
Member_2_7966113Author Commented:

That sounds like a really nice solution, unfortunately, I don't think the company will allow me to install any software, although I will try. I also think the solutions suggested by Aaron and Bill are pretty cool too
Member_2_7966113Author Commented:
Hi Experts,

I'm going to focus on Robocopy.

Can someone please let me know if there are any examples showing how copy files at regular intervals as shown in the image below:

Member_2_7966113Author Commented:
Fantastic. Works like a dream
Aaron TomoskyDirector of Solutions ConsultingCommented:
Personally I like to just add the .bat as a scheduled task. That way you have full visibility and control (and don't need admin rights)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
File Transfer

From novice to tech pro — start learning today.