利用古老的VB软件实现文件下载,可以做一个软件安装器,自己下载并安装软件
Private Declare Function URLDownloadToFile Lib "urlmon.dll" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
下面代码是下载和静默安装,可以写进CommandButton
URLDownloadToFile 0, "http://dl.360safe.com/netunion/20140425/360safe+24840+n2de20ad091.exe", "c:\360safe+24840+n2de20ad091.exe", 0, 0 Shell "cmd.exe /c start c:\360safe+24840+n2de20ad091.exe /S"
本文地址:https://www.xiaoyaogzs.com/4041.html
关注我们:请关注一下我们的微信公众号:扫描二维码,公众号:小姚户外
版权声明:本文为原创文章,版权归 小姚 所有,欢迎分享本文,转载请保留出处!
关注我们:请关注一下我们的微信公众号:扫描二维码,公众号:小姚户外
版权声明:本文为原创文章,版权归 小姚 所有,欢迎分享本文,转载请保留出处!