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!