Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question