D
D
Denai2014-12-02 13:44:22
Data synchronization
Denai, 2014-12-02 13:44:22

How to automatically update files from a network folder with minimal traffic?

There is a folder on the local computer and a certain folder on the network. One or more files are regularly updated/added/deleted in the network folder. In total, changes occur by 2-3 mb, but the entire folder weighs several hundred meters. We are looking for the simplest way to bring folders into an identical state, which does not include stupid copying of all . Ideally, in general, only the changed pieces of files should be downloaded.
The date of creation/modification of files in the network folder may not correspond to reality. files should be compared not by date.
UPD: stopped at robocopy for now, but it's a funny situation. Russian letters in file names must be written in an encoding that is understandable to him. "®in Є"
For conversion, I didn’t think of anything easier than saving it as it is to a file, and then throwing it on vbs with the following content:

On Error Resume Next
FullName = WScript.Arguments(0)

With CreateObject("ADODB.Stream")
  .Type = 2
  .Charset = "windows-1251"
  .Open
  .LoadFromFile FullName
  Text = .ReadText()
  .Close

  .Charset = "cp866"
  .Open
  .WriteText (Text)
  .SaveToFile FullName, 2
  .Close
End with

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
ldv, 2014-12-02
@Denai

hotbits.ru/2012/10/robocopy-%D0%B7%D0%B5%D1%80%D0%...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question