function create_mexopts_caller_bat_file(file,fileNameInfo)

% Copyright 2007-2010 The MathWorks, Inc.

    if ~isempty(fileNameInfo.mexSetEnv)
        % G976129. Turn off "echo" to speed up execution of the generated batch file.
fprintf(file,'@echo off\n');
fprintf(file,'%s\n',fileNameInfo.mexSetEnv);
    end

