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

4 Ansichten (letzte 30 Tage)
David
David am 21 Mär. 2025
Kommentiert: Walter Roberson am 21 Mär. 2025
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)?

Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by