command "rm -f" is replaced with a version "del /F" if WNT is defined (running on windows).

This commit is contained in:
asv 2006-07-31 12:54:21 +00:00
parent 662ae2fe78
commit ba7df26a44

View 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;