📄 批量文件整合2.0版.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "批量字符文件整合器2.0版"
ClientHeight = 6210
ClientLeft = 60
ClientTop = 345
ClientWidth = 8340
LinkTopic = "Form1"
ScaleHeight = 6210
ScaleWidth = 8340
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "开始整合"
Height = 975
Left = 1200
TabIndex = 2
Top = 960
Width = 1815
End
Begin VB.TextBox Text1
Height = 3255
Left = 3360
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 1
Top = 720
Width = 3735
End
Begin VB.CommandButton Command2
Caption = "完成退出"
Height = 1215
Left = 1320
TabIndex = 0
Top = 3960
Width = 1935
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
n = InputBox("输入所要整合的文件个数")
nn = "如 .TXT或者 .doc等等字符文件"
ST = InputBox(nn, "请将所要整合的文件和该程序放到同一文件夹下,并输入所要整合的文件的路径")
SS = InputBox(nn, "输入所要整合成为的文件的格式")
m = Val(n) * 1
For i = 1 To m
Open App.Path & "\" & i & ST For Input As #1
Do While Not EOF(1)
Line Input #1, inp
TT = TT + inp + vbCrLf
Loop
Close #1
Next i
Open App.Path & "\整合后的文件" & "" & SS For Output As #2
Print #2, TT
Close #2
MsgBox ("整合完毕")
End Sub
Private Sub Command2_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -