是这样的吗?作者: 7238996 时间: 2010-6-30 14:01
Sub BATtoVBS()
Dim a as string , temp as strimg
Dim b() As Byte, get_b As String
If InStr(LCase(Combo1), ".bat") = 0 Then MsgBox "请选择源文件 ": Exit Sub
If InStr(LCase(Combo2), ".vbs") = 0 Then MsgBox "请选择目标文件 ": Exit Sub
If GetDriveType(Left(Combo2, 3)) = 5 Then MsgBox "不能写入光盘,请重新选择": Exit Sub
command1.Enabled = False
b() = LoadResData(114, "CUSTOM")
get_b = StrConv(b(), vbUnicode)
Open Combo1 For Input As #1
Do While Not EOF(1)
Line Input #1, a
If Replace(a, " ", vbNullString) <> "" Then temp = temp + "';" + a & vbCrLf
Loop
Close #1
Open Combo2 For Output As #1
Print #1, get_b + temp
Close
MsgBox "转换成功,目标文件为: " + Combo2
End Sub作者: jszforms 时间: 2010-6-30 17:18
是beta版,什么时候有正式版