Update Files from a Configuration
Write the Update List
In the default configuration file, .SimpleFileUpdater, write one mapping per line. Put the local destination on the left of the equals sign and the download URL on the right:
# 每行一个映射:本地路径 = 远程 URLTools\MyTool.exe = https://example.com/releases/MyTool.exeDocs\Manual.pdf = https://cdn.example.com/docs/Manual.pdf- Supports relative or absolute paths
- Automatically creates the required folders
- Supports comments beginning with
#
Run the Update and Check the Results
Place SimpleFileUpdater.exe and .SimpleFileUpdater in the same directory, then:
- Double-click
SimpleFileUpdater.exeto automatically read the configuration and synchronize the required files - Or run it from the command line:
SimpleFileUpdater.exe MyConfig.txtAfter execution, the program remains in the console and waits for you to press Enter to view the results.
This run updates settings.json with the downloaded content and reports 已更新 (updated). The download address points to a local demonstration service; use your own download URL in your configuration.
Run the same list again. When the downloaded content matches the local file, the program reports 已是最新 (already up to date) and keeps the existing file.
Before Overwriting Files
This is a personal utility; you assume the risks of using it. Before running the update, verify that the remote URLs are trustworthy and the destination paths are correct. Back up any files already at those destinations, as the update may overwrite them.

