Salome HOME
command "rm -f" is replaced with a version "del /F" if WNT is defined (running on...
[modules/smesh.git] / src / SMESH_I / SMESH_Gen_i.cxx
index 142a908957ffe65d5505d79b0f5904820ddb1d6c..e8ecf556d08f06137bf2e80ea2e96df6b8a5da13 100644 (file)
@@ -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;