📄 frmalertfilecheck.frm
字号:
VERSION 5.00
Begin VB.Form frmAlertFileCheck
BorderStyle = 3 'Fixed Dialog
Caption = "警示! - 文件发生改变..."
ClientHeight = 2085
ClientLeft = 45
ClientTop = 435
ClientWidth = 6720
Icon = "frmAlertFileCheck.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "frmAlertFileCheck.frx":000C
ScaleHeight = 2085
ScaleWidth = 6720
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "允许"
Height = 315
Left = 5760
TabIndex = 4
Top = 1680
Width = 735
End
Begin VB.CommandButton Command1
Caption = "恢复"
Default = -1 'True
Height = 315
Left = 120
TabIndex = 3
Top = 1680
Width = 855
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "如果你确定这一个文件不被其他程序有意修改,单击恢复按钮将从备份的文件里进行还原。"
ForeColor = &H00404000&
Height = 435
Left = 120
TabIndex = 2
Top = 1080
Width = 6405
WordWrap = -1 'True
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "下列文件发生改变"
ForeColor = &H00404000&
Height = 180
Left = 120
TabIndex = 1
Top = 120
Width = 1440
End
Begin VB.Label Label2
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 1 'Fixed Single
Caption = "<filename>"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 615
Left = 120
TabIndex = 0
Top = 360
Width = 6450
WordWrap = -1 'True
End
End
Attribute VB_Name = "frmAlertFileCheck"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居汉化收藏整理
'发布日期:2007/09/20
'描 述:界面清爽VB版高级专业防火墙 Ver 2.0.3
'网 站:http://www.Mndsoft.com/ (VB6源码博客)
'网 站:http://www.VbDnet.com/ (VB.NET源码博客,主要基于.NET2005)
'e-mail :Mndsoft@163.com
'e-mail :Mndsoft@126.com
'OICQ :88382850
' 如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
Option Explicit
Private Sub Command1_Click()
Dim b() As String
Dim a As String
On Error Resume Next
frmMainFileCheck.lvFiles.ListItems.Clear
WindowState = vbMinimized
FileCopy App.Path & "\Backup" & frmMainFileCheck.GetNameOnly(Label2.Caption), Label2.Caption
frmMainFileCheck.lvAddItem Label2.Caption, 3, False
On Error GoTo 0
On Error Resume Next
Open "Backup.lst" For Input As #1
Do While EOF(1) = False
Line Input #1, a
b = Split(a, "|/\|")
frmMainFileCheck.lvLoadItem b(0), b(1)
frmMainFileCheck.ScanFile b(0)
DoEvents
Loop
Close #1
App.TaskVisible = True
On Error GoTo 0
frmMainFileCheck.tmrFileCheck.Enabled = True
Unload Me
End Sub
Private Sub Command2_Click()
WindowState = vbMinimized
With frmMainFileCheck
.RemoveFile Label2.Caption, App.Path & "\Backup" & .GetNameOnly(Label2.Caption)
.SecureFile Label2.Caption, App.Path & "\Backup" & .GetNameOnly(Label2.Caption)
.lvAddItem Label2.Caption, 3, False
.tmrFileCheck.Enabled = True
End With 'frmMainFileCheck
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -