文本内容批量更换的问题, 回车换成;
来源:百度知道 编辑:UC知道 时间:2024/06/30 02:48:22
Private Sub Command1_Click()
Dim i As Long
Dim ReDat As String
Dim SavDat As String
Dim SavPath As String
SavPath = File1.Path & "\已整理的QQ号文件"
If Dir(SavPath, vbDirectory) = "" Then MkDir SavPath
If File1.ListCount > 0 Then
For i = 0 To File1.ListCount - 1
Open File1.Path & "\" & File1.List(i) For Input As #1
Do While Not EOF(1)
Input #1, ReDat
SavDat = SavDat & ";" & ReDat
Loop
Close
Open SavPath & "\" & File1.List(i) For Binary As #2
Put #2, , SavDat
Close
SavDat = ""
Next
MsgBox "OK!"
Else
MsgBox "没有找到txt文本文件!"
End If
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path =