Why am I unable to generate an M-Lint Code Check Report on a file with a UNC pathname in MATLAB?

3 views (last 30 days)
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')

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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.

More Answers (0)

Categories

Find more on Search Path in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!