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

4 visualizaciones (últimos 30 días)
David
David el 21 de Mzo. de 2025
Comentada: Walter Roberson el 21 de Mzo. de 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)?

Respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by