Program Interface:
This procedure explains
* Automatic updating of generic programs. It's best to put it in the same sibling directory as the program that needs to be updated automatically
* Automatic update with file interface. autoupdate.config files must be available at the same level in this program
* The file format is:
* Url= get upgrade to configuration file
* cmd= to execute after upgrade is complete
Url=url1$url2$url3$url4
Cmd=cmd.exe
* The automatic upgrade program checks the URL in order, if the first one is invalid, select the second, and so on.
* After the upgrade is completed, execute the command written at CMD.
If the URL is checked to be valid, the returned content of the URL is obtained
* Program to obtain the format of the returned content should be downloaded to the file address $ saved in the local file name
Ur1$filename1
Url2$filename2
* The program downloads the URL one by one and saves it to the corresponding directory in the upgrade program.
* If there is a autoupdate.error in the same directory to explain the upgrade process is wrong, the file is written in the wrong content.