Unable to access mapped drives

35 次查看(过去 30 天)
Tony Sanders
Tony Sanders 2020-6-8
I realize from the title that the tendency will be that this has already been answered, but I have new/additional information. I am running Windows 10 Pro Version 1909 and MatLab R2019a. External to MatLab, in a DOS window, when I execute "net use", I get:
C:\Users\14105>net use
New connections will not be remembered.
Status Local Remote Network
-------------------------------------------------------------------------------
OK Y: \\gs448ecn5035919.ndc.nasa.gov\d
Microsoft Windows Network
OK Z: \\gs448share.ndc.nasa.gov\WFIRST
Microsoft Windows Network
The command completed successfully.
When I execute a similar system command from MatLab's command window, I get:
>> [status,cmdout] = system('net use','-echo')
New connections will not be remembered.
There are no entries in the list.
status =
0
The odd thing about this is that a few weeks ago, I was able to access those drives from within MatLab, which suggests (I well understand) operator error (me). It is almost as if MatLab does not have the same environment/privileges that exist for a command window. By way of information, I have MatLab running with Admin privileges. In your experience, is there a way that MatLab, in spite of having the property of running in Admin mode, is somehow curtailed in its environment or privileges, or that I have inadvertently done something as Admin that would cause this behavior? I realize that when dealing with system administration, a question like this can be a real can of worms.
Thanks

回答(1 个)

Stan Shepherd
Stan Shepherd 2021-8-26
I am able to access my T: drive from within my Matlab Admin session, by explicitly remapping it from within the session
!net use T: \\xxx\yy

类别

Help CenterFile Exchange 中查找有关 Manage Products 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by