How Can I Write A Program for File Synchronization Between Drives

79 Views Asked by At

While working; there was a problem and my C drives can not be reachable anymore.Now I want to write a program to sychronize Desktop and D. Which way i should follow.

Additionally ; I tried to perform this without any program following way but failed.

subst D: c:\users\geek\desktop

creating a virtual driver and map it to desktop and D driver .

Thanks

1

There are 1 best solutions below

1
On

You can do it with Java, C# or any other platform

With Java you can follow this tutorial. Just watch the directory for changes then copy changed files to other drive.

Watching a Directory for Changes

for C# you can use this class and apply same solution

.NET FileSystemWatcher Class Reference

or simply you can use some tool for synchronization

FreeFileSync

Good luck