diff --git a/CobXmlSupport/ShowCode.cs b/CobXmlSupport/ShowCode.cs index c10e286..d5531aa 100644 --- a/CobXmlSupport/ShowCode.cs +++ b/CobXmlSupport/ShowCode.cs @@ -123,7 +123,10 @@ namespace CobXmlSupport File.Delete(backupfile); } - File.Move(inPath + codeFile, backupfile );//+ DateTime.Now.ToString()); + if (File.Exists(inPath + codeFile)) + { + File.Move(inPath + codeFile, backupfile);//+ DateTime.Now.ToString()); + } File.WriteAllText(inPath + codeFile, codeComplInit); refreshWindow();