⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 update.frm

📁 星子行主机控制系统用于主机管理,方便远程操作,通信等功能.更 方便用于局域网,管理速度快,连接简单方便.注意:星子行连接可用 于带路由主机与带路由主机之间连接,非路由与非路由之间连接.带
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{48E59290-9880-11CF-9754-00AA00C00908}#1.0#0"; "MSINET.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Update 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "自动更新"
   ClientHeight    =   2415
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4815
   BeginProperty Font 
      Name            =   "楷体_GB2312"
      Size            =   9
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "Update.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   2415
   ScaleWidth      =   4815
   StartUpPosition =   1  '所有者中心
   Begin MSComDlg.CommonDialog Dlg1 
      Left            =   120
      Top             =   3120
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin InetCtlsObjects.Inet Inet1 
      Left            =   0
      Top             =   3120
      _ExtentX        =   1005
      _ExtentY        =   1005
      _Version        =   393216
   End
   Begin VB.CommandButton Command2 
      Caption         =   "重试"
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2640
      TabIndex        =   4
      Top             =   1920
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "取消"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3720
      TabIndex        =   3
      Top             =   1920
      Width           =   975
   End
   Begin 自动更新.Downloader Downloader1 
      Height          =   735
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   1335
      _ExtentX        =   2355
      _ExtentY        =   1508
   End
   Begin MSComctlLib.ProgressBar Pr1 
      Height          =   375
      Left            =   120
      TabIndex        =   0
      Top             =   1080
      Width           =   4575
      _ExtentX        =   8070
      _ExtentY        =   661
      _Version        =   393216
      Appearance      =   1
   End
   Begin VB.Label Label1 
      Caption         =   "软宇公司"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   120
      TabIndex        =   5
      Top             =   2160
      Width           =   975
   End
   Begin VB.Label Label2 
      Caption         =   "制作商:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   120
      TabIndex        =   6
      Top             =   1920
      Width           =   735
   End
   Begin VB.Label Lb1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   120
      TabIndex        =   2
      Top             =   1560
      Width           =   4575
   End
End
Attribute VB_Name = "Update"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Public Vers As Single
Public Vrs As Single
Public Uhtt As String
Public Dhtt As String
Public Filna As String


Private Sub Command1_Click()

On Error Resume Next

Shell App.Path & "\Scm.exe"

End

End Sub

Private Sub Command2_Click()

'Call Reinfo_Ini

If Dhtt = "" And Filna = "" Then GoTo Errsn

Downloader1.BeginDownload Dhtt, App.Path & "\" & Filna

Command2.Enabled = False

Exit Sub

Errsn:

MsgBox "服务器繁忙!请稍后再试!", 16, "提示"

Command2.Enabled = True

End Sub

Private Sub Downloader1_DownloadComplete(MaxBytes As Long, SaveFile As String)
'Lb1.Caption = "完成!"

If Command2.Enabled = True Then

Else
Call Wrifo_Ver

Command1.Caption = "完成"

MsgBox "升级成功!" & vbCrLf & "已升级最新版本:" & "V" & Vrs, 64, "提示"

End If


End Sub

Private Sub Downloader1_DownloadError(SaveFile As String)
Command2.Enabled = True
MsgBox "下载发生错误!", vbExclamation Or vbOKOnly, "错误:"
End Sub

Private Sub Downloader1_DownloadProgress(CurBytes As Long, MaxBytes As Long, SaveFile As String)
On Error Resume Next
Dim Prda As Long

 Prda = (CurBytes / MaxBytes) * 100

Lb1.Caption = "已完成:" & Prda & "%" & "  " & "共有:" & CurBytes & "字节" & " " & "(" & "剩余:" & MaxBytes - CurBytes & "字节" & ")"

Pr1.Min = 0

Pr1.Max = MaxBytes

Pr1.Value = CurBytes


End Sub

Private Sub Form_Load()

Call Reinfo_Ver

End Sub


Public Sub Upst_st()

If Dhtt = "" And Filna = "" Then GoTo Errsn

Downloader1.BeginDownload Dhtt, App.Path & "\" & Filna

Exit Sub

Errsn:

MsgBox "升级文件丢失!请重试一次!", 16, "提示"

Command2.Enabled = True


End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -