diff --git a/Txt2eBook.ahkL b/Txt2eBook.ahkL index 2ddef72..9d1dc76 100644 --- a/Txt2eBook.ahkL +++ b/Txt2eBook.ahkL @@ -1,6 +1,6 @@ #NoENV ; 预计功能: 根据正则分析标题,生成包含目录的ebook文件 -VerDate := "2016-07-01" +VerDate := "2016-07-04" ; 2013-5-7: mobigen生成的mobi格式在Kindle PaperWhite上,跳转目录显示为乱码,需使用kindlegen FoxDir := FoxReg("保存目录") @@ -346,8 +346,15 @@ Txt2eBook: ; return } } else { - msgbox, 文件已存在,请重命名原文件`n%TestPath% - return + NewOLDFile := bookname . "_" . A_now . "." . EpubOutExt + Filemove, %TestPath%, %BookName%\%NewOLDFile%, 1 + ifExist, %TestPath% + { + msgbox, 重命名失败,请手动修改文件名`n%TestPath% + return + } else { + TrayTip, 文件已存在:, 已重命名:`n%BookName%.%EpubOutExt%`n为`n%NewOLDFile% + } } saveNowREList() ; 保存RE1表达式 diff --git a/Txt2eBook.exe b/Txt2eBook.exe index ef7155f..2f3a417 100644 Binary files a/Txt2eBook.exe and b/Txt2eBook.exe differ diff --git a/Txt2eBook.html b/Txt2eBook.html index 28a69f7..685ea58 100644 --- a/Txt2eBook.html +++ b/Txt2eBook.html @@ -55,6 +55,7 @@