windows - Way to automate enumerating and inserting subfolders into a command line -


Using Robocopies to share two user home directories with two different servers to a new server, but use it / Can not clean the mirror deletes because it will remove other server stuff.

I need to calculate the folder names that share the user $ on each server, and add it in the two given statement in the command given below, so I can purify the user at the subfolder level. RobotCopy command:

Robocopy "\ CurrentServer1 \ users $" "F: \ user" / e / b / copy: DATSOU / R: 1 / W: 1 / metric / ORG: -CC: Robocopelogs Mirror User 1.txt "

Can a Batch or VBSSP Practice Do It?

Provide thanks in advance for any help.

You can merge both source folders into a staging folder, then you can mirror that staging folder to the destination. Address:

  mkdir C: \ staging robocopy \\ server1 \ src C: \ staging / e / b ... robocopy \\ server2 \ src C: \ staging / e / b .. Robocopy C: \ s C: \ dst / mir / b ... rmdir / s / qC: \ staging  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -