How to access UNC path with credentials?
조회 수: 12 (최근 30일)
이전 댓글 표시
I am looking for the ways to access UNC paths which require credentials. I am currently using Matlab 2016b. Please help.
댓글 수: 0
채택된 답변
Guillaume
2017년 11월 10일
There's no direct way to access them in matlab. You probably could go through Java, or if on Windows, through .Net, but probably the simplest would be to mount the UNC through the OS. if on windows:
drivename = 'U:'; %whichever you want
unc = '\\somewhere\somepath\
user = 'username';
password = 'password';
system(sprintf('net use %s "%s" /user:%s %s', drivename, unc, user, password));
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Java Client Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!