public override void Distribute(Distribute.IDistributable distributableObject) { ClusterSubmitter.SubmitAndWait(this, distributableObject, MaxSubmitAfterTasksFail); if (CopyResults.Count > 0) { HpcLib.CopyFiles(CopyResults, ExternalRemoteDirectoryName, "."); } }
public static void CopyInputFiles(List <string> filesToCopy, string baseDestnDir) { HpcLib.CopyFiles(filesToCopy, "", baseDestnDir); //string xcopyArgsFormatString = GetXCopyArgsFormatString(filesToCopy[0], baseDestnDir); //foreach (string file in filesToCopy) //{ // Process proc = new Process(); // proc.StartInfo.FileName = "xcopy"; // proc.StartInfo.Arguments = string.Format(xcopyArgsFormatString, file); // proc.StartInfo.UseShellExecute = false; // //proc.StartInfo.RedirectStandardOutput = true; // //Console.WriteLine("xcopy " + proc.StartInfo.Arguments); // proc.Start(); // proc.WaitForExit(); // if (proc.ExitCode > 0) // throw new Exception("Unable to copy file using command xcopy " + proc.StartInfo.Arguments); //} }