From: abd Date: Wed, 13 Sep 2006 14:42:30 +0000 (+0000) Subject: Replace 'cp' to 'xcopy' for Win32 X-Git-Tag: Before_Merging_V3_2_0_maintainance_21Sep06~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0612ef29779bdb2f557e002ce90d4a069917647f;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 34c3d37a..ce90dc65 100644 --- a/src/VISU_I/VISU_Gen_i.cc +++ b/src/VISU_I/VISU_Gen_i.cc @@ -333,17 +333,24 @@ namespace VISU if(theIsMultiFile){ aFileName = SALOMEDS_Tool::GetNameFromPath(aStudy->URL()) + aFileName; - std::ostringstream aStream; + + + + //std::ostringstream aStream; #ifndef WNT - aStream<<"cp "< #include #include +#include // VTK Includes #include @@ -1161,9 +1162,15 @@ Create(const char* theFileName) #ifndef WNT aCommand.sprintf("cp %s %s", #else - aCommand.sprintf("xcopy %s %s /Y /Q", + aCommand.sprintf("xcopy %s %s", #endif myFileInfo.absFilePath().latin1(),aTmpDir.c_str()); + aCommand = QDir::convertSeparators( aCommand ); + +#ifdef WNT + aCommand += " /Y /R"; +#endif + if(system(aCommand) == -1){ MESSAGE("Create - Can't execute the command :"<