From 05fc853d1363376873ff0733bf8b7e3c2e93a2db Mon Sep 17 00:00:00 2001 From: mikeFourie_cp Date: Sun, 20 Apr 2014 14:38:35 +0100 Subject: [PATCH] Framework\AsyncExec.cs: Fix for file generation #12275 Issue with AsyncExec task --- Solutions/Main/Framework/Framework/AsyncExec.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Solutions/Main/Framework/Framework/AsyncExec.cs b/Solutions/Main/Framework/Framework/AsyncExec.cs index 6f834f6c..b34c75da 100644 --- a/Solutions/Main/Framework/Framework/AsyncExec.cs +++ b/Solutions/Main/Framework/Framework/AsyncExec.cs @@ -102,7 +102,7 @@ private static string CreateBatchProgram(string command) { string tmpFilePath = System.IO.Path.GetTempFileName(); string batFilePath = string.Format(CultureInfo.InvariantCulture, "{0}.bat", tmpFilePath); - File.Move(tmpFilePath, batFilePath); + File.Copy(tmpFilePath, batFilePath, true); File.WriteAllText(batFilePath, command); return batFilePath; }