From: asv Date: Mon, 31 Jul 2006 12:54:21 +0000 (+0000) Subject: command "rm -f" is replaced with a version "del /F" if WNT is defined (running on... X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ba7df26a44dbbf7c36270cc753bb753d706fef13;p=modules%2Fsmesh.git command "rm -f" is replaced with a version "del /F" if WNT is defined (running on windows). --- 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;