DOS use Wget.exe make antivirus software upgrades more automated _dos/bat

Source: Internet
Author: User
First of all thanks to the xhj moderator for the vast number of users to provide anti-virus software CD-ROM, USB disk collection, and provide anti-virus software upgrade methods. When using antivirus upgrades, HXJ uses Windows command-line to provide upgrades, as follows: IEXPLORE http://..., using this command, requires the user to specify the location of the download, very unpleasant (this winrar too), there is no other way, As long as the user a click to upgrade fully automatic it? In fact, it can be done.
Wget is a free tool for downloading files automatically from the network under Linux, it supports the HTTP,HTTPS and FTP protocols, and can use HTTP proxies, which are currently ported to Windows. It provides "download files unless newer than local files" update download, download the continuation of the download file directory to save the functions, more multi-functional see accessories.
Following the Hxj dos antivirus Guan Pan For example, modify the batch process for automatic upgrades:
1: The download attachment WGET.exe copy to the system directory, generally for C:\windows,upd.bat modified as follows:
echo off
Wget-nh-n-C Http://dos.cf91.com/update/update.exe
IF not exist Update.exe echo ' Can not update Now ' && pause && GOTO End
Update.exe-s
Exit
: End
Description:-nh means that the directory is not created, downloaded to the current directory;-n indicates that the same file is not loaded;-C indicates that the download continues.
And do it more beautifully, hide the DOS window, and use the Hidecmd command.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.