Network Folder synchronization

June 28, 2009 at 20:45:18
Specs: Windows XP
Hi there, well I am not to sure if this is possible; I've had a look around and being only new to writing dos based commands (in a batch file) I am stuck with trying to do the following:

At the moment I have two computers networked and I want to in a sense "backup/sync" a specific folder (this being the my pictures folder; I want it to have hard copies exactly the same on each computer). I've managed to get it to copy the pictures over (only new files from the source that don't exist on the target computer); I want to be able to delete pictures from the target computer that have been deleted from the source computer.

Here is what I have at the moment:
@echo off

echo Grabing New Files From Mary-PC Pictures

NET USE z: \\Mary-PC\Pictures

XCOPY z: c:\Users\John\Pictures\ /D /S /Q

echo Complete


So yeah I want to now delete files from the target computer (John) that are no longer on the source computer (Mary-PC) but I am not sure on how to accomplish that.

Any help would be highly appreciated :)

See More: Network Folder synchronization

Report •

June 28, 2009 at 21:55:04
I'm sure there is a way to do this natively with a bunch of programming, but when I had the same issue, I downloaded the command line program "mirror" (search for it at As the name suggests, it will mirror two directors so that that after running, both will have the same files. Works with mapped network drives for sure, and I think it will work with UNC paths (\\computername\sharename\).

-Ryan Adams
Free Computer Tips and more:

Paid Tech Support: Black Diamond

Report •
Related Solutions

Ask Question