Skip to content

Commit

Permalink
Framework\AsyncExec.cs: Fix for file generation
Browse files Browse the repository at this point in the history
#12275     Issue with AsyncExec task
  • Loading branch information
mikeFourie_cp authored and mikeFourie_cp committed Apr 20, 2014
1 parent de8240b commit 05fc853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Solutions/Main/Framework/Framework/AsyncExec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 05fc853

Please sign in to comment.