MATLAB: Am I unable to generate an M-Lint Code Check Report on a file with a UNC pathname in MATLAB

.mlintMATLAB

When I use the MLINT function from the command line to generate a report on a file with a UNC pathname using the following code:
mlint('\\pathname\file','-fullpath')
I receive the following error:
??? Error using ==> system
DOS commands may not be executed when the current directory is a UNC pathname.
I receive the same error when I map this path to a network drive in Windows and run MLINT using the newly mapped drive as follows:
mlint('T:\file','-fullpath')

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
We have verified that there is a bug in MATLAB 7.0 (R14) when generating an M-Lint Code Check Report on a file with a UNC pathname.
To work around this issue:
1. Map the path to a drive name (e.g. T:\). In Windows Explorer, see the "Tools -> Map Network Drive..." menu item.
2. In MATLAB, change the current directory to a directory on this drive, using the CD function.
3. From the toolbar in the Current Directory Browser, select "M-Lint Code Check Report" from the drop-down menu.