Tuesday, October 24, 2017

RoboCopy and Context Menu

1. Create Bat files to Push, Pull and Synch files with Robocopy.

2. Create Script bat files to get input and output dirs. Either via %1 context and/or prompt via cmd.

3. Create Reg files to register commands for each Script bat file.


In my scenario, here is end result:

image

created with this reg files:


image


Mapped to these bat files:

image


This allows Push, Pull and Synch with netwirk drives!

RoboCopy + .bat + regedit = Context Menu Happiness and less work trying to run commands to backup / synch dirs!


Summary of commands is below:

1) Synch00_PUSH Files to Network Synch.OneWay.Script.bat
     Synch.OneWay "C:\Temp\Source" "C:\Temp\Destination"
     C:\Temp\Synch.OneWay.BBPics.bat
    
2) Synch00_PULL Pics to another (n) machine Synch.Mirror.Script.bat
     PULL
     Synch.Mirror C:\Temp\Destination C:\Temp\Source2
    
    
3) Synch02_PushAndPull Edit M2, Synch.Mirror.Synch.All.Script.bat
     PUSH
     Synch.Mirror C:\Temp\Source2 C:\Temp\Destination
     PULL Deltas
     Synch.All C:\Temp\Destination C:\Temp\Source2

No comments:

Post a Comment