Want to build your own File Sync tool?
-
22 lutego 2008 17:18Właściciel
Are you interested in building your own SyncToy like File Synchronization solution and embedding that in your application?
As you likely already know, SyncToy is a free tool which helps you copy, move, rename, and delete files between folders and computers quickly. At the core of SyncToy is Sync Services for File System which is a component of the Microsoft Sync Framework (freely available on Windows platforms). The Microsoft Sync Framework was built to enable synchronization of any data source including Files.
Ultimately you can think of SyncToy as a nice UI wrapper built on top of Sync Services for File Systems.
If you download a copy of the latest Microsoft Sync Framework, you will find a number of file synchronization samples that will enable you to build a solution very similar to that of SyncToy. Not surpisingly, the samples function very similar to the way that SyncToy does. Within these samples you can modify them however you like. Whether that is to synchronize files with a Web Site (such as Flickr or SmugMug) or over a network (including Bluetooth, or WiFi).
If you are interested in learning more or if you have any questions. Please visit our Sync Developer Center and our Sync Forum.
Wszystkie odpowiedzi
-
17 czerwca 2008 05:34All the samples seem to be in C++ or C#. Is there an an equivalent in VB?
-
17 czerwca 2008 05:36All the code samples seem to be in C++ or C#. Is there a VB equivalent?
-
17 czerwca 2008 09:00
I have the exact same question as above posted by trlambert1. I am a vbs/powershell administrator and in order to take advantage of this technology, I would need to learn C# or C++!!
Thanks
-
17 czerwca 2008 17:39Właściciel
Hi,
Yes, there is more that we can do to improve the number of VB samples we have, however, there is one File Sync example that was written in VB within our samples directory that comes with the product. You can find it here:
\Program Files\Microsoft SDKs\Microsoft Sync Framework\v1.0\Samples\ManagedNTFSSample
Liam
-
24 czerwca 2008 19:11
Will the Sync Framework allow file syncronization across directories that do not have drive letters, such as Windows Mobile PDAs, digital camera, or a Zune? All these show up under "Other" in My Computer. -
3 lipca 2008 04:53
Any chance I could get some elaboration on "Whether that is to synchronize files with a Web Site"
I'm looking into an application that can sync files between multiple clients via HTTP.
-
4 lipca 2008 13:00
Yes,
But I have one issue:
I downloaded the CTP2 framework, but no samples are included. Where can I download them? As the API changed between CTP1 and 2, the former do not compile.
-
13 lipca 2008 21:01
-
14 lipca 2008 17:01Właściciel
That is great, thank-you for taking the initiative to get this started! I will make a post to this link from our sync blog to hopefully get more people to help add to this.
Thanks,
Liam
-
15 lipca 2008 11:10
It would be great to see some samples that incorporate BITS and RDC technologies from Microsoft to allow highly effecient background syncing using the Background Intelligent Transfer Service and reducing bytes transmitted by incorporating Remote Differential Compression.
BITS
http://msdn.microsoft.com/en-us/library/aa362708.aspx
RDC
http://msdn.microsoft.com/en-us/library/aa372948(VS.85).aspx
-
16 października 2008 20:09
- I have set the properties of the secondary folder as “read only” however when I add a new document to or change a document in the primary folder and run Sync All, the new file is not set as “read only” Is there a way to maintain the “read only” properties of the new or changed file?
-
12 grudnia 2008 15:11
A question re sync types - i have been tasked with providing a small app that would make use of the framework
i will be syncronising folder pairs form workstations to a networked resource.
after working through the samples provided i am wanting to know where you differentiate between the types of sync operations available in synctoy i.e Syncronize and Echo
any advice or guidance is appreciated
-
12 grudnia 2008 16:29Właściciel
Clive,
- Synchronize: New and updated files are copied both ways. Renames and deletes on either side are repeated on the other.
- Echo: New and updated files are copied left to right. Renames and deletes on the left are repeated on the right.
- Contribute: New and updated files are copied left to right. Renames on the left are repeated on the right. No deletions.
Liam
-
1 stycznia 2009 09:46
I would like this as well. I've played with BITS (pardon the pun) a bit, and it's no walk in the park. -
25 marca 2009 03:44Would echo work properly and delete files on the right even if they have been "touched" or updated? This is the only serious flaw in SyncToy which is otherwise a wonderful tool and extremly useful in my backup scenarios where I mirror to a removable sata drive to take off site and swap in another alternate and bring that one up to "sync". I'd much prefer SyncToy was fixed though so I did not have to write my own application that did the same functionality. Is this a defect or artifact of the sync framework or does SyncToy do this for some reason on purpose? Thanks, Dave
Dave -
14 maja 2009 14:54Hi Liam, has Microsoft considered embedding the synctoy functionality into the actual copy/paste feature. When I was a mac developer back in the 90's, I used a product called SmartCopy that basically sped up your copying in the same manner as synctoy, except it patched the copy/paste and allowed you to perform smart copying plus some additional features (docking of multiple copying windows, maybe a pause, been a while...)
-
7 lipca 2009 12:04
Will the Sync Framework allow file syncronization across directories that do not have drive letters, such as Windows Mobile PDAs, digital camera, or a Zune? All these show up under "Other" in My Computer.
I love to know the answer for this as well! I am interested to get SyncToy working with my Nokia Phone with a SD card over the bluetooth. It has no drive letter thus giving me an error. Error here: http://i28.tinypic.com/whgyut.jpg -
21 sierpnia 2009 21:50"Within these samples you can modify them however you like. Whether that is to synchronize files with a Web Site (such as Flickr or SmugMug)"
This is what I am interested in doing. Except I want to host the sync engine in a web service and send back to the client app (that is initiating the sync) a "script" of actions it has to take to synchronize with the remote storage provider (e.g., SmugMug).
Could you give me some guidance on which samples/where in the samples I should look to get up to speed?
Thank you,
Pete -
22 sierpnia 2009 17:14How about Sync+DFS for Enterprise applications?You see, every one can work on his owner pc and easy to store it to servers(Maybe windows server or unix like server) without always keep connect to the network.This just a local workspace ,not a network disk driver mapping.And each file have a unique key, on the server ,many file can just have one copy , and others just reference it.When all reference remove , we can delete that file , like com .for a enterprise , simplefy information manage is useful.
-
12 października 2009 17:46I use a programme to file synchronization, which is called File Sync. [URL="http://www.fileutilityblog.com/archives/229"]File sync and backup software[/URL] is a necessary thing for everybody. That is why I use this program and haven't such problems. What do you think about it?
-
26 października 2009 18:03
I use a programme to file synchronization, which is called File Sync. [URL="http://www.fileutilityblog.com/archives/229"]File sync and backup software[/URL] is a necessary thing for everybody. That is why I use this program and haven't such problems. What do you think about it?
I didn t find any option to snyc via powershell.
My current Backupconfiguration is controlled by a batch file. So it seems moleskinsoft file sync is no solution for me. -
10 września 2010 03:58
How can I achieve some function that SyncToy implements ?
I cannot find any method or property that I will be able to direct Framework to change
its action behavior like Echo , Contribute .
-
21 maja 2013 15:51
PING
since windows RT cannot install traditional exes, and therefore has no way to sync skydrive, a timed script to sync skydrive with a local folder could be perfect. skydrive can be mapped to a drive letter in RT.
I have been playing with this powershell one, but it does not sync deletions and is kind of slow and heavy because it checks the md5 to compare files for newness: