MATLAB: Do I get an error when running BUILDMCR in MATLAB 7.4 (R2007a)

accessMATLAB Compilerpermissionswritewriteonly

When I try to run the BUILDMCR command:
filename = buildmcr(dirname,filename);
I get the following error message:
Error opening 'C:\Program Files\MATLAB\R2007a\toolbox\compiler\deploy\win32\MCRInstaller.zip'
CtfCreateZip failed:
Failed to create zip file 'C:\Program Files\MATLAB\R2007a\toolbox\compiler\deploy\win32\MCRInstaller.zip' from 10168 input files.
ans =
C:\Program Files\MATLAB\R2007a\toolbox\compiler\deploy\win32\MCRInstaller.zip

Best Answer

This error message is issued due to limited permissions for the user in the working directory. Please change the working directory to a location where the current user has full write permissions before running this command.