Copie de Sauvegarde
This commit is contained in:
parent
afc21dccf0
commit
e07d45f12e
1 changed files with 4 additions and 0 deletions
|
|
@ -355,6 +355,10 @@ namespace DMX2
|
|||
if (conduiteFile == null)
|
||||
return;
|
||||
|
||||
// Copie de sauvegarde
|
||||
if(conduiteFile.Exists)
|
||||
conduiteFile.CopyTo(string.Format("{0}.{1:yyyyMMdd-HHmm}.bak",conduiteFile.FullName,conduiteFile.LastWriteTime),true);
|
||||
|
||||
using (FileStream stream = conduiteFile.Open(FileMode.Create,FileAccess.Write)) {
|
||||
System.Xml.XmlDocument doc = Conduite.Courante.Save ();
|
||||
doc.Save (stream);
|
||||
|
|
|
|||
Loading…
Reference in a new issue