Why does matlab exe fail with mapped drive path as input?

3 views (last 30 days)
I have a matlab script with a path and filename as inputs.
The matlab script runs fine within within the matLab development environment, i.e.:
ret = get_TIA_TC_T0_darkV_R0('c:/ZMI4200/MatLab Exes/', 'ZY24130009')
or passing in a mapped drive as the 1st argument:
ret = get_TIA_TC_T0_darkV_R0('y:\', 'ZY24130009')
In both cases the matlab script executes with no issues:
The script has been compiled into an exe.
from a cmd window window with admin privileges if a call the routine:
get_TIA_TC_T0_darkv_R0 "c:/ZMI4200/MatLab Exes/" "ZY24130009"
I get the desired output.
If I instead used a mapped drive ("y") with access to the same files i.e.:
get_TIA_TC_T0_darkv_R0 "y://" "ZY24130009"
I see the following:
Output argument "success" (and possibly others) not assigned a value in the execution with "get_TIA_TC_T0_darkV_R0" function.
MATLAB:unassignedOutputs
Is there a problem with the mapped drive path length (75 chars)?

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!