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

4 ビュー (過去 30 日間)
David
David 2025 年 3 月 21 日
コメント済み: Walter Roberson 2025 年 3 月 21 日
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)?
  1 件のコメント
Walter Roberson
Walter Roberson 2025 年 3 月 21 日
To check:
Did you try
get_TIA_TC_T0_darkv_R0 "y:\" "ZY24130009"

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by