Nonsense string needed to access network path: \\?\UNC\
이전 댓글 표시
I am running an analysis in paralell on a handful of machines.
- The machines all have the same access to the server with the data.
- On the problem machine, the files can only be read or written when I append a (seemingly) nonsense string to the beginning of the path.
- This does not apply to the logfile.txt, but to pngs, csvs, and mat-files.
- I discovered what the magic string was when I used "Copy as path" in the file explorer and pasted directly into the load function.
- This is the only machine running R2022b and not R2023a
I suspect it has something to do with not being able to interpret the file as -ascii and not comm issues with the network, since the txt file is . Is this a known issue?
try
load(fullfile(filepath,filename),"-mat")
catch
filepath_original = filepath;
filepath = strrep(filepath,'\\m','\\?\UNC\m');
end
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!