From: abd Date: Wed, 13 Sep 2006 14:01:19 +0000 (+0000) Subject: Replace 'cp' to 'xcopy' for Win32 X-Git-Tag: Before_Merging_V3_2_0_maintainance_21Sep06~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eba8717d09e5c9fabe909fbc98c709e11304ad98;p=modules%2Fvisu.git Replace 'cp' to 'xcopy' for Win32 --- diff --git a/src/VISU_I/VISU_Gen_i.cc b/src/VISU_I/VISU_Gen_i.cc index 375287ca..34c3d37a 100644 --- a/src/VISU_I/VISU_Gen_i.cc +++ b/src/VISU_I/VISU_Gen_i.cc @@ -334,7 +334,11 @@ namespace VISU aFileName = SALOMEDS_Tool::GetNameFromPath(aStudy->URL()) + aFileName; std::ostringstream aStream; +#ifndef WNT aStream<<"cp "<GetName()).c_str(); QString tmpDir = QDir::convertSeparators( QString(aTmpDir.ToCString()) );; static QString aCommand; +#ifndef WNT aCommand.sprintf("cp %s %s%s",aFileInfo.filePath().latin1(),tmpDir.latin1(),aFileName.latin1()); +#else + aCommand.sprintf("xcopy %s %s%s /Y /Q",aFileInfo.filePath().latin1(),tmpDir.latin1(),aFileName.latin1()); +#endif if(system(aCommand.latin1())){ if(MYDEBUG) MESSAGE("VISU_Gen_i::Save - Can't execute the command :"<