aFileName = SALOMEDS_Tool::GetNameFromPath(aStudy->URL()) + aFileName;
std::ostringstream aStream;
+#ifndef WNT
aStream<<"cp "<<aFile<<" "<<aTmpDir<<aFileName;
+#else
+ aStream<<"xcopy "<<aFile<<" "<<aTmpDir<<aFileName<<" /Y /Q ";
+#endif
std::string aCommand = aStream.str();
QString comm = QDir::convertSeparators( QString(aCommand.c_str()) );
QString aFileName = aPrefix + "_" + (pResult->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 :"<<aCommand);
aFileName += aFileInfo.fileName().latin1();
static QString aCommand;
string aFullFileName = aTmpDir + aFileName;
+#ifndef WNT
aCommand.sprintf("cp %s %s",
+#else
+ aCommand.sprintf("xcopy %s %s /Y /Q",
+#endif
aFileInfo.filePath().latin1(),
aFullFileName.c_str());
if(system(aCommand) == -1) {
if(mySourceId == eRestoredFile){
std::string aTmpDir(SALOMEDS_Tool::GetTmpDir());
static QString aCommand;
- aCommand.sprintf("cp %s %s",myFileInfo.absFilePath().latin1(),aTmpDir.c_str());
+#ifndef WNT
+ aCommand.sprintf("cp %s %s",
+#else
+ aCommand.sprintf("xcopy %s %s /Y /Q",
+#endif
+ myFileInfo.absFilePath().latin1(),aTmpDir.c_str());
if(system(aCommand) == -1){
MESSAGE("Create - Can't execute the command :"<<aCommand);
return NULL;