Fixed batch file processing error with regard to spec and corrupting the file