[英]c# - get local dropbox synchronisation status
I was wondering what would be the best way in c# to get information about the synchronization status of a local dropbox instance. 我想知道在c#中获取本地Dropbox实例的同步状态信息的最佳方法是什么。 Unfortunately i found no info in the registry or any logfile.
不幸的是,我没有在注册表或任何日志文件中找到任何信息。 Suggestions or snippets are welcomed.
欢迎提出建议或摘要。 Four status would be enough: Synced, Syncing, Paused, Error.
四个状态就足够了:“已同步”,“正在同步”,“已暂停”,“错误”。
Br, Matthias. Br,Matthias。
I've made a Delphi port of an old Python script flying around. 我已经制作了一个古老的Python脚本在Delphi上运行。 It uses the Win32 API with a Named Pipe to query the dropbox application about the file status.
它使用带有命名管道的Win32 API来查询Dropbox应用程序有关文件状态的信息。 You should be able to port this over to C# with no hassle:
您应该可以轻松将其移植到C#:
https://bitbucket.org/h4ndy/dropboxdelphi/src https://bitbucket.org/h4ndy/dropboxdelphi/src
You get the following states from it: 'Pipe Error', 'Dropbox not running', 'Not in Dropbox', 'Up to Date', 'Sync in Progress', 'Sync Problem' 您从中获得以下状态:“管道错误”,“ Dropbox未运行”,“不在Dropbox中”,“最新”,“正在同步”,“同步问题”
Not a direct answer, but have you checked the Addons page of the DropBox wiki? 这不是一个直接的答案,但是您是否检查过DropBox Wiki的Addons页面? http://dropboxwiki.com/Dropbox_Addons This got me the same info for Linux systems, so hopefully will help you out too.
http://dropboxwiki.com/Dropbox_Addons这为我提供了与Linux系统相同的信息,因此希望也能对您有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.