|
@@ -219,7 +219,7 @@ namespace ConsoleApp2
|
|
|
objReader.Close();
|
|
|
try
|
|
|
{
|
|
|
- string filename = Path.GetDirectoryName(srcFile) + "\\" + Path.GetFileName(srcFile) + ".ttcfg";
|
|
|
+ string filename = Path.GetDirectoryName(srcFile) + "\\" + Path.GetFileNameWithoutExtension(srcFile) + ".ttcfg";
|
|
|
if (File.Exists(filename))//文件已存在,跳过
|
|
|
{
|
|
|
Console.WriteLine("文件已存在,跳过!\r\n");
|