Method to determine whether given folder path is local (vs networked)?
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Andrew Diamond
el 8 de Ag. de 2021
Editada: Andrew Diamond
el 8 de Ag. de 2021
Programatically given a string. This includes URL or Windows file or folder path strings.
Something like isfolder but islocalfolder or isnetworkedfolder
0 comentarios
Respuesta aceptada
Walter Roberson
el 8 de Ag. de 2021
You might possibly be able to use a .NET System.IO.DriveInfo
Although that is talking about C#, System.* is at least partially available in MATLAB, such as System.Diagnostics.Process https://www.mathworks.com/matlabcentral/answers/575608-system-and-system-diagnostics-process#answer_485447
2 comentarios
Andrew Diamond
el 8 de Ag. de 2021
Editada: Andrew Diamond
el 8 de Ag. de 2021
Walter Roberson
el 8 de Ag. de 2021
There is the additional possibility that the computer name somehow resolves to the current computer. localhost or 127.0.0.1 or an ip address that is one of the local host ip addresses. Also watch out for \\?
https://stackoverflow.com/questions/2787203/unc-path-to-a-folder-on-my-local-computer
Más respuestas (0)
Ver también
Categorías
Más información sobre MATLAB Compiler SDK en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!