本帖最后由 afan 于 2011-4-13 17:06 编辑 Local $Files = FileOpenDialog('请选取要合并的档案,可用Ctrl或Shift复选', @WorkingDir & '', 'DAT(*.*)', 1 + 4)
If @error Then Exit (MsgBox(0, 'DAT to EML Tool', '无选取档案,退出'))
If Not StringInStr($Files, '|') Then Exit (MsgBox(0, 'DAT to EML Tool', '单个文件无合并意义,退出'))
Local $sR = StringRegExp($Files, '[^\|]+', 3)
If @error Or UBound($sR) < 2 Then Exit -1
Local $FileDir = $sR[0] & '\'
Local $cmdstr = @ComSpec & ' /c Copy "'
For $i = 1 To UBound($sR) - 1
$cmdstr &= $FileDir & $sR[$i] & '" + "'
Next
$cmdstr = StringTrimRight($cmdstr, 3) & ' final.eml'
RunWait($cmdstr, '', 0)
|