I am getting the following error:
    조회 수: 3 (최근 30일)
  
       이전 댓글 표시
    
Warning: Function C:\windows\system32\input.dll has the same name as a MATLAB
builtin. We suggest you rename the function to avoid a potential name conflict. 
> In path at 110
  In addpath at 87
  In startup at 40
  In matlabrc at 209 
Warning: Function C:\windows\system32\version.dll has the same name as a MATLAB
builtin. We suggest you rename the function to avoid a potential name conflict. 
> In path at 110
  In addpath at 87
  In startup at 40
  In matlabrc at 209 
Could you please help me resolve this?
댓글 수: 7
답변 (1개)
  Rik
      
      
 2018년 11월 19일
        The real fix is to prevent a function to add the system32 folder in the first place, but the code below is the temporary fix to remove the problematic folders. I made sure to only use base functions that already existed in R2012a.
% set this to false to actually apply the fix
% keep this to true to first display the folders you are about to remove
tryout=true;
if tryout,clc,end
%get all folders in your path
p=path;
%split to 1 folder per cell
p_list = regexp(p,';','split');
%remove any folder that starts with 'C:\Windows'
for n=numel(p_list):-1:1
    is_in_windir=~isempty(strfind(lower(p_list{n}),lower('C:\Windows')));
    if is_in_windir
        if tryout
            fprintf('%s\n',p_list{n})
        else
            rmpath(p_list{n});
        end
    end
end
댓글 수: 1
  Jan
      
      
 2018년 11월 19일
				
      편집: Jan
      
      
 2018년 11월 19일
  
			I'd replace
~isempty(strfind(lower(p_list{n}),lower('C:\Windows')));
by
strncmpi(plist{n}, 'C:\Windows', 10)
or run it on the complete cell string plist before the loop.
p = strsplit(path, pathsep);
p(strncmpi(p, 'C:\Windows', 10)) = [];
path(sprintf(['%s', pathsep], p{:}));
Nevertheless, the main idea solves the problem: +1
참고 항목
카테고리
				Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


