• 0

Moving folders


Question

I've got a problem with two folders on two servers. The folders are created on the new server and I need to only move the folders that have the exact same name on both servers. There are 1000+ folders on each and probably 200-300 that are the same on both. What's the easiest way to move folders from folder a to folder b only if folderX exists in both a and b?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

You will need to use a batch file and the batch file should look something like this

if exist "c:\documents and settings\test\my documents\folder a\special folder" goto copy

:copy

xcopy /s/e "c:\documents and settings\test\my documents\folder a\*.*" "d:\documents and settings\test\my documents\folder b\"

Link to comment
Share on other sites

  • 0

I'm looking at this, and trying to figure out how to make sure folderx is in both folder a and b. Folders a and folders b are at two different schools, each with 700+ students. There are are about 200 students that moved up from schoola to school b. I only want those 200 students files to move from a to b.

Thanks

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.