From eba8717d09e5c9fabe909fbc98c709e11304ad98 Mon Sep 17 00:00:00 2001 From: abd Date: Wed, 13 Sep 2006 14:01:19 +0000 Subject: [PATCH] Replace 'cp' to 'xcopy' for Win32 --- src/VISU_I/VISU_Gen_i.cc | 12 ++++++++++++ src/VISU_I/VISU_Result_i.cc | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) 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 :"<