如何从我的电脑访问另一台电脑和sychronize文件夹和子文件夹 [英] how to Access from my pc to other another pc and sychronize folder and subfolder

查看:100
本文介绍了如何从我的电脑访问另一台电脑和sychronize文件夹和子文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



初学者来自C ++,并且一直坚持从我的访问另一台PC,并且必须更新文件夹和子文件夹,或者同步在C ++中修改的文件,它就像服务器一样PC和客户就是这样的。

如果有人帮我,请非常感谢。

来自

venkatesh。


Am beginner to C++, and have stuck with accessing another pc from mine, and have to update folder and sub folder either side or synchronize the file which modified in C++,Its like Server PC and Clients for example.
if anybody helps me will be very thankful please.
from
venkatesh.

推荐答案

嗯,那里有很多同步软件......但如果它是你试图保持同步的代码,你应该真正使用源代码控制软件。为什么? ...因为它不会让你保持同步,它还会保留所有更改的历史记录,以便您可以恢复或追踪由于源中的更改而发生的问题,允许您对更改进行差异以查看是什么改变了,并允许你有多个代码和标签分支(有多个版本并跟踪你的版本)。



有很多替代品可供免费使用控制:

0. SVN

1. Mercurial

2. GIT

3.等......



有很多选项 [ ^ ]可供选择。它们通常在保存存储库(中央v。分布式),跟踪如何实现以及如何保留跟踪信息方面有所不同。他们都有积极的和消极的,所以你必须看一些,看看最适合你的是什么。



一旦你学会了如何使用它,你会想知道没有它你是如何生活的。 :)
Well, there's a lot of synchronizing software out there... but if it's code you're trying to keep synchronize, you should really use source control software. Why? ...because it will not just keep you synchronized, it will also keep a history of all your changes so you can revert or track down problems that happened due to changes in the source, allow you to do diffs on your changes to see what's changed, and allow you to have multiple branches of code and tags (to have multiple versions and track your releases).

There are plenty of alternatives that are free for source control:
0. SVN
1. Mercurial
2. GIT
3. etc...

There are quite a few options[^] to choose from. They usually differ in the way they keep their repositories (central v. distributed), how the tracking is achieved, and how the tracking info is kept. They all have positives and negatives so you'll have to look through a few and see what suits you the best.

Once you learn how to use it, you'll wonder how you lived without it. :)


很好地说并感谢Albert Holguin ....但是考虑文件名(路径),修改日期和文件夹中的文件和文件大小存储在我的电脑中的结构向量中,同样的方式必须访问其他pc相同的文件夹将存储在vector中,然后将比较这两个数据并更新反之。

问题是不知道如何通过C ++代码访问其他pc。不是一台电脑,它可以是多个号码......所以请。
well said and thanks Albert Holguin.... but am consider file name(Path),modified date and size of folder & file stored in structure vector in my pc, same way have to access other pc same folder will stored in vector,then will compare both data and update vice verse.
the problem is don't know how to access other pc through C++ code. not one pc it can be multiple number... so please.


这篇关于如何从我的电脑访问另一台电脑和sychronize文件夹和子文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆