From ba7df26a44dbbf7c36270cc753bb753d706fef13 Mon Sep 17 00:00:00 2001 From: asv Date: Mon, 31 Jul 2006 12:54:21 +0000 Subject: [PATCH] command "rm -f" is replaced with a version "del /F" if WNT is defined (running on windows). --- src/SMESH_I/SMESH_Gen_i.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index 142a90895..e8ecf556d 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -1261,7 +1261,12 @@ SALOMEDS::TMPFile* SMESH_Gen_i::Save( SALOMEDS::SComponent_ptr theComponent, //Remove the files if they exist: BugID: 11225 +#ifndef WNT /* unix functionality */ TCollection_AsciiString cmd("rm -f \""); +#else /* windows */ + TCollection_AsciiString cmd("del /F \""); +#endif + cmd+=filename; cmd+="\" \""; cmd+=meshfile; -- 2.39.2